Mercurial > dropbear
diff whirl.c @ 15:6362d3854bb4 libtomcrypt-orig
0.96 release of LibTomCrypt
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 15 Jun 2004 14:07:21 +0000 |
parents | 7faae8f46238 |
children | 09ab3354aa21 5d99163f7e32 |
line wrap: on
line diff
--- a/whirl.c Mon May 31 18:25:41 2004 +0000 +++ b/whirl.c Tue Jun 15 14:07:21 2004 +0000 @@ -21,6 +21,11 @@ 11, 64, 64, + + /* DER encoding (not yet supported) */ + { 0x00 }, + 0, + &whirlpool_init, &whirlpool_process, &whirlpool_done, @@ -34,7 +39,7 @@ #define GB(a,i,j) ((a[(i) & 7] >> (8 * (j))) & 255) /* shortcut macro to perform three functions at once */ -#define theta_pi_gamma(a, i) \ +#define theta_pi_gamma(a, i) \ SB0(GB(a, i-0, 7)) ^ \ SB1(GB(a, i-1, 6)) ^ \ SB2(GB(a, i-2, 5)) ^ \