Added blocksize for the benefit of HMAC code
authorMichael Brown <mcb30@etherboot.org>
Tue, 30 Jan 2007 22:54:43 +0000 (22:54 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 30 Jan 2007 22:54:43 +0000 (22:54 +0000)
src/crypto/md5.c

index 6064233..94ab69a 100644 (file)
@@ -237,7 +237,7 @@ static void md5_final(void *context, void *out)
 struct crypto_algorithm md5_algorithm = {
        .name           = "md5",
        .ctxsize        = sizeof ( struct md5_ctx ),
 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,
        .digestsize     = MD5_DIGEST_SIZE,
        .init           = md5_init,
        .encode         = md5_update,