Skip to content

Commit 5baa874

Browse files
committed
fix HMAC max block size
HMAC-SHA3/224 has block_size=144
1 parent da71ef8 commit 5baa874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/hmacmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
#define UINT32_MAX_AS_SSIZE_T ((Py_ssize_t)UINT32_MAX)
4444

45-
#define Py_hmac_hash_max_block_size 128
45+
#define Py_hmac_hash_max_block_size 144
4646
#define Py_hmac_hash_max_digest_size 64
4747

4848
/* MD-5 */

0 commit comments

Comments
 (0)