summaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
authorMichael Brown2007-01-30 23:54:43 +0100
committerMichael Brown2007-01-30 23:54:43 +0100
commit0e996b81cf081e3fb3a8a67c7ecacf3015102899 (patch)
treebb10e258215535994abf2b920e182337a8d9c3d2 /src/crypto
parentAdded cipher wrapper functions (diff)
downloadipxe-0e996b81cf081e3fb3a8a67c7ecacf3015102899.tar.gz
ipxe-0e996b81cf081e3fb3a8a67c7ecacf3015102899.tar.xz
ipxe-0e996b81cf081e3fb3a8a67c7ecacf3015102899.zip
Added blocksize for the benefit of HMAC code
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/md5.c b/src/crypto/md5.c
index 60642335..94ab69a2 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,