From: Michael Brown Date: Tue, 30 Jan 2007 22:54:43 +0000 (+0000) Subject: Added blocksize for the benefit of HMAC code X-Git-Tag: v0.9.3~494 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e996b81cf081e3fb3a8a67c7ecacf3015102899;p=thirdparty%2Fipxe.git Added blocksize for the benefit of HMAC code --- diff --git a/src/crypto/md5.c b/src/crypto/md5.c index 606423354..94ab69a29 100644 --- a/src/crypto/md5.c +++ b/src/crypto/md5.c @@ -237,7 +237,7 @@ static void md5_final(void *context, void *out) struct crypto_algorithm md5_algorithm = { .name = "md5", .ctxsize = sizeof ( struct md5_ctx ), - .blocksize = 1, + .blocksize = ( MD5_BLOCK_WORDS * 4 ), .digestsize = MD5_DIGEST_SIZE, .init = md5_init, .encode = md5_update,