Mercurial > dropbear
comparison rc6.c @ 143:5d99163f7e32 libtomcrypt-orig
import of libtomcrypt 0.99
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 19 Dec 2004 11:34:45 +0000 |
parents | 7faae8f46238 |
children |
comparison
equal
deleted
inserted
replaced
15:6362d3854bb4 | 143:5d99163f7e32 |
---|---|
69 A <<= (8 * (4 - (keylen&3))); | 69 A <<= (8 * (4 - (keylen&3))); |
70 L[j++] = BSWAP(A); | 70 L[j++] = BSWAP(A); |
71 } | 71 } |
72 | 72 |
73 /* setup the S array */ | 73 /* setup the S array */ |
74 memcpy(S, stab, 44 * sizeof(stab[0])); | 74 XMEMCPY(S, stab, 44 * sizeof(stab[0])); |
75 | 75 |
76 /* mix buffer */ | 76 /* mix buffer */ |
77 s = 3 * MAX(44, j); | 77 s = 3 * MAX(44, j); |
78 l = j; | 78 l = j; |
79 for (A = B = i = j = v = 0; v < s; v++) { | 79 for (A = B = i = j = v = 0; v < s; v++) { |