Browse Source

Added blocksize for the benefit of HMAC code

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
0e996b81cf
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/crypto/md5.c

+ 1
- 1
src/crypto/md5.c View File

@@ -237,7 +237,7 @@ static void md5_final(void *context, void *out)
237 237
 struct crypto_algorithm md5_algorithm = {
238 238
 	.name		= "md5",
239 239
 	.ctxsize	= sizeof ( struct md5_ctx ),
240
-	.blocksize	= 1,
240
+	.blocksize	= ( MD5_BLOCK_WORDS * 4 ),
241 241
 	.digestsize	= MD5_DIGEST_SIZE,
242 242
 	.init		= md5_init,
243 243
 	.encode		= md5_update,

Loading…
Cancel
Save