comparison rc5.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
79 L[j++] = BSWAP(A); 79 L[j++] = BSWAP(A);
80 } 80 }
81 81
82 /* setup the S array */ 82 /* setup the S array */
83 t = (ulong32)(2 * (num_rounds + 1)); 83 t = (ulong32)(2 * (num_rounds + 1));
84 memcpy(S, stab, t * sizeof(*S)); 84 XMEMCPY(S, stab, t * sizeof(*S));
85 85
86 /* mix buffer */ 86 /* mix buffer */
87 s = 3 * MAX(t, j); 87 s = 3 * MAX(t, j);
88 l = j; 88 l = j;
89 for (A = B = i = j = v = 0; v < s; v++) { 89 for (A = B = i = j = v = 0; v < s; v++) {