comparison dss.c @ 84:29a5c7c62350

default initialisers for mp_ints
author Matt Johnston <matt@ucc.asn.au>
date Tue, 17 Aug 2004 10:20:20 +0000
parents b0316ce64e4b
children 82fcf3185616
comparison
equal deleted inserted replaced
83:6539c9480b23 84:29a5c7c62350
162 unsigned int len) { 162 unsigned int len) {
163 163
164 unsigned char msghash[SHA1_HASH_SIZE]; 164 unsigned char msghash[SHA1_HASH_SIZE];
165 hash_state hs; 165 hash_state hs;
166 int ret = DROPBEAR_FAILURE; 166 int ret = DROPBEAR_FAILURE;
167 mp_int val1, val2, val3, val4; 167 DEF_MP_INT(val1);
168 DEF_MP_INT(val2);
169 DEF_MP_INT(val3);
170 DEF_MP_INT(val4);
168 char * string = NULL; 171 char * string = NULL;
169 int stringlen; 172 int stringlen;
170 173
171 TRACE(("enter buf_dss_verify")); 174 TRACE(("enter buf_dss_verify"));
172 assert(key != NULL); 175 assert(key != NULL);
279 unsigned int i; 282 unsigned int i;
280 #ifdef DSS_PROTOK 283 #ifdef DSS_PROTOK
281 unsigned char privkeyhash[SHA512_HASH_SIZE]; 284 unsigned char privkeyhash[SHA512_HASH_SIZE];
282 unsigned char *privkeytmp; 285 unsigned char *privkeytmp;
283 unsigned char proto_k[SHA512_HASH_SIZE]; 286 unsigned char proto_k[SHA512_HASH_SIZE];
284 mp_int dss_protok; 287 DEF_MP_INT(dss_protok);
285 #else 288 #else
286 unsigned char kbuf[SHA1_HASH_SIZE]; 289 unsigned char kbuf[SHA1_HASH_SIZE];
287 #endif 290 #endif
288 mp_int dss_k, dss_m; 291 DEF_MP_INT(dss_k);
289 mp_int dss_temp1, dss_temp2; 292 DEF_MP_INT(dss_m);
290 mp_int dss_r, dss_s; 293 DEF_MP_INT(dss_temp1);
294 DEF_MP_INT(dss_temp2);
295 DEF_MP_INT(dss_r);
296 DEF_MP_INT(dss_s);
291 hash_state hs; 297 hash_state hs;
292 298
293 TRACE(("enter buf_put_dss_sign")); 299 TRACE(("enter buf_put_dss_sign"));
294 assert(key != NULL); 300 assert(key != NULL);
295 301