Bug fix from InfoZIP: fix casts for HMAC computation
diff --git a/lib/gladman-fcrypt/hmac.c b/lib/gladman-fcrypt/hmac.c index 3632a99..a57f376 100644 --- a/lib/gladman-fcrypt/hmac.c +++ b/lib/gladman-fcrypt/hmac.c
@@ -87,7 +87,7 @@ /* xor ipad into key value */ for(i = 0; i < (IN_BLOCK_LENGTH >> 2); ++i) - ((unsigned long*)cx->key)[i] ^= 0x36363636; + ((sha1_32t*)cx->key)[i] ^= 0x36363636; /* and start hash operation */ sha1_begin(cx->ctx); @@ -115,7 +115,7 @@ /* set outer key value using opad and removing ipad */ for(i = 0; i < (IN_BLOCK_LENGTH >> 2); ++i) - ((unsigned long*)cx->key)[i] ^= 0x36363636 ^ 0x5c5c5c5c; + ((sha1_32t*)cx->key)[i] ^= 0x36363636 ^ 0x5c5c5c5c; /* perform the outer hash operation */ sha1_begin(cx->ctx);