summaryrefslogtreecommitdiffstats
path: root/Doc/library/hashlib.rst
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2007-11-06 00:19:03 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2007-11-06 00:19:03 (GMT)
commite1ac4f19301aa0a4d28fc25b91c71c477c37cb21 (patch)
treef73016435d33c9db6aff9667061b79ff92057718 /Doc/library/hashlib.rst
parent91f9429bc34aa8879fd65fcbcbe81b5e923fc8cb (diff)
downloadcpython-e1ac4f19301aa0a4d28fc25b91c71c477c37cb21.zip
cpython-e1ac4f19301aa0a4d28fc25b91c71c477c37cb21.tar.gz
cpython-e1ac4f19301aa0a4d28fc25b91c71c477c37cb21.tar.bz2
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).
Diffstat (limited to 'Doc/library/hashlib.rst')
-rw-r--r--Doc/library/hashlib.rst10
1 files changed, 9 insertions, 1 deletions
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 @@ repetition'``::
>>> 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 @@ returned by the constructors:
.. 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: