# HG changeset patch # User michael # Date 1173783195 0 # Node ID 9a876d28d480e750c452a82d5779e4531dedd7d2 # Parent 0498b2f2851a35a1c88a90e40eef95ce917dcf94 use CONFIG_SMALL diff -r 0498b2f2851a -r 9a876d28d480 sha1.c --- a/sha1.c Tue Mar 13 10:48:22 2007 +0000 +++ b/sha1.c Tue Mar 13 10:53:15 2007 +0000 @@ -25,8 +25,6 @@ /* Hash a single 512-bit block. This is the core of the algorithm. */ -//#define VARIANT2 - static void transform(uint32_t state[5], uint8_t buffer[64]){ uint32_t block[80]; unsigned int i, a, b, c, d, e; @@ -36,7 +34,7 @@ c = state[2]; d = state[3]; e = state[4]; -#ifdef VARIANT2 +#ifdef CONFIG_SMALL for(i=0; i<80; i++){ int t; if(i<16) t= be2me_32(((uint32_t*)buffer)[i]);