From: Pekka Riikonen Date: Mon, 10 Jul 2000 05:35:21 +0000 (+0000) Subject: Fixed bug -- does not change original data anymore. X-Git-Tag: SILC.0.1~476 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=49f41dade2732b09545291195cfb1ae29865736e;p=silc.git Fixed bug -- does not change original data anymore. --- diff --git a/lib/silccrypt/sha1.c b/lib/silccrypt/sha1.c index e60a6d02..f22df0b8 100644 --- a/lib/silccrypt/sha1.c +++ b/lib/silccrypt/sha1.c @@ -67,13 +67,9 @@ typedef union { unsigned long l[16]; } CHAR64LONG16; CHAR64LONG16* block; -#ifdef SHA1HANDSOFF static unsigned char workspace[64]; block = (CHAR64LONG16*)workspace; memcpy(block, buffer, 64); -#else - block = (CHAR64LONG16*)buffer; -#endif /* Copy context->state[] to working vars */ a = state[0]; b = state[1]; @@ -174,9 +170,7 @@ unsigned char finalcount[8]; memset(context->state, 0, 20); memset(context->count, 0, 8); memset(finalcount, 0, 8); -#ifdef SHA1HANDSOFF /* make SHA1Transform overwrite it's own static vars */ SHA1Transform(context->state, context->buffer); -#endif }