Fixes Issue 1385: The hmac module now computes the correct hmac when using
hashes with a block size other than 64 bytes (such as sha384 and sha512).
diff --git a/Doc/library/hashlib.rst b/Doc/library/hashlib.rst
index 59d65a7..8bba718 100644
--- a/Doc/library/hashlib.rst
+++ b/Doc/library/hashlib.rst
@@ -48,6 +48,10 @@
>>> m.update(" the spammish repetition")
>>> m.digest()
'\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9'
+ >>> m.digest_size
+ 16
+ >>> m.block_size
+ 64
More condensed::
@@ -72,7 +76,11 @@
.. data:: digest_size
- The size of the resulting digest in bytes.
+ The size of the resulting hash in bytes.
+
+.. data:: block_size
+
+ The internal block size of the hash algorithm in bytes.
A hash object has the following methods: