Parcourir la source

Added blocksize for the benefit of HMAC code

tags/v0.9.3
Michael Brown il y a 17 ans
Parent
révision
0e996b81cf
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/crypto/md5.c

+ 1
- 1
src/crypto/md5.c Voir le fichier

@@ -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,

Chargement…
Annuler
Enregistrer