Changeset 137 for trunk/src/sh_forward.c
- Timestamp:
- Oct 28, 2007, 1:17:58 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_forward.c
r133 r137 277 277 register int i; 278 278 unsigned char * dez = NULL; 279 char hashbuf[KEYBUF_SIZE]; 279 280 280 281 if (password == NULL) … … 297 298 } 298 299 (void) sl_strlcpy (skey->vernam, 299 sh_tiger_hash(skey->vernam, TIGER_DATA, PW_LEN), 300 sh_tiger_hash(skey->vernam, TIGER_DATA, PW_LEN, 301 hashbuf, sizeof(hashbuf)), 300 302 KEY_LEN+1); 301 303 } … … 320 322 (void) sl_strlcpy (hash, 321 323 sh_tiger_hash(combi, TIGER_DATA, 322 (unsigned long) sl_strlen(combi)), 324 (unsigned long) sl_strlen(combi), 325 hashbuf, sizeof(hashbuf)), 323 326 KEY_LEN+1); 324 327 … … 1012 1015 /* --- Create own nonce. --- 1013 1016 */ 1014 ticks = (UINT32) taus_get (&(skey->rng0[0]), 1015 &(skey->rng1[0]), 1016 &(skey->rng2[0])); 1017 ticks = (UINT32) taus_get (); 1018 1017 1019 (void) sl_strlcpy(nonce_u, 1018 1020 sh_tiger_hash((char *) &ticks, … … 1591 1593 /* --- Generate a nonce. --- 1592 1594 */ 1593 ticks = (UINT32) taus_get (&(skey->rng0[0]), 1594 &(skey->rng1[0]), 1595 &(skey->rng2[0])); 1595 ticks = (UINT32) taus_get (); 1596 1596 1597 1597 (void) sl_strlcpy(nclt, … … 1897 1897 char hashbuf[KEYBUF_SIZE]; 1898 1898 1899 val[0] = taus_get ( &(skey->rng0[0]), &(skey->rng0[1]), &(skey->rng0[2]));1900 val[1] = taus_get ( &(skey->rng0[0]), &(skey->rng0[1]), &(skey->rng0[2]));1899 val[0] = taus_get (); 1900 val[1] = taus_get (); 1901 1901 1902 1902 sl_strlcpy (output, … … 2970 2970 sl_strlcpy (conn->peer, &(conn->buf[KEY_LEN]), SH_MINIBUF+1); 2971 2971 2972 ticks = (UINT32) taus_get (&(skey->rng0[0]), 2973 &(skey->rng1[0]), 2974 &(skey->rng2[0])); 2972 ticks = (UINT32) taus_get (); 2973 2975 2974 if (conn->K != NULL) 2976 2975 { … … 3430 3429 sl_strlcpy (conn->peer, &(conn->buf[KEY_LEN]), SH_MINIBUF+1); 3431 3430 3432 ticks = (UINT32) taus_get (&(skey->rng0[0]), 3433 &(skey->rng1[0]), 3434 &(skey->rng2[0])); 3431 ticks = (UINT32) taus_get (); 3432 3435 3433 test = (char *) &ticks; 3436 3434 sh_util_cpylong (conn->challenge, test, 4); … … 3790 3788 /* -- create server nounce v -- 3791 3789 */ 3792 ticks = (UINT32) taus_get (&(skey->rng0[0]), 3793 &(skey->rng1[0]), 3794 &(skey->rng2[0])); 3790 ticks = (UINT32) taus_get (); 3795 3791 3796 3792 if (conn->A != NULL) … … 4116 4112 * create nonce u 4117 4113 */ 4118 ticks = (UINT32) taus_get (&(skey->rng0[0]), 4119 &(skey->rng1[0]), 4120 &(skey->rng2[0])); 4114 ticks = (UINT32) taus_get (); 4115 4121 4116 test = (char *) &ticks; 4122 4117 sh_util_cpylong (u, test, 4); /* u nounce */
Note:
See TracChangeset
for help on using the changeset viewer.