Przeglądaj źródła

Added blocksize for the benefit of HMAC code

tags/v0.9.3
Michael Brown 17 lat temu
rodzic
commit
0e996b81cf
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/crypto/md5.c

+ 1
- 1
src/crypto/md5.c Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz