diff options
author | Frédéric Bertolus <fred@linkeos.com> | 2011-04-08 18:23:07 +0200 |
---|---|---|
committer | Frédéric Bertolus <fred@linkeos.com> | 2011-04-08 18:23:07 +0200 |
commit | 577d0dbd7dfeeb07d55ec0a3412298722cdd2337 (patch) | |
tree | cc8d30dc07a5d9a132a531d451a1eb7457510203 /src/hash_template.c | |
parent | a65e9e86bfce406fc72bc21f219c8de4eba42181 (diff) | |
download | pycrypto-577d0dbd7dfeeb07d55ec0a3412298722cdd2337.tar.gz |
Add variable block size support to HMAC-SHA384 and HMAC-SHA512 which use
block of 128 bytes long
Diffstat (limited to 'src/hash_template.c')
-rw-r--r-- | src/hash_template.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hash_template.c b/src/hash_template.c index 78e37be..60270c2 100644 --- a/src/hash_template.c +++ b/src/hash_template.c @@ -258,6 +258,7 @@ _MODULE_NAME (void) /* Add some symbolic constants to the module */ PyModule_AddIntConstant(m, "digest_size", DIGEST_SIZE); + PyModule_AddIntConstant(m, "block_size", BLOCK_SIZE); /* Check for errors */ if (PyErr_Occurred()) |