aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/cryptographic-hashes.rst
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2013-12-21 15:16:57 +0000
committerAlex Stapleton <alexs@prol.etari.at>2013-12-21 17:12:05 +0000
commit1b1327cfe537b9e7bdc271239d1025c2479239c3 (patch)
tree8a27a12313c0ba6ab6b62757d1332e18bac2df9c /docs/hazmat/primitives/cryptographic-hashes.rst
parent9b9318d79ba5927603b120411d13b607938cae56 (diff)
downloadcryptography-1b1327cfe537b9e7bdc271239d1025c2479239c3.tar.gz
cryptography-1b1327cfe537b9e7bdc271239d1025c2479239c3.tar.bz2
cryptography-1b1327cfe537b9e7bdc271239d1025c2479239c3.zip
Raise UnsupportedAlgorithm when initing Hash()
Instead of just an AssertionError.
Diffstat (limited to 'docs/hazmat/primitives/cryptographic-hashes.rst')
-rw-r--r--docs/hazmat/primitives/cryptographic-hashes.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/cryptographic-hashes.rst b/docs/hazmat/primitives/cryptographic-hashes.rst
index 90ca198a..38347378 100644
--- a/docs/hazmat/primitives/cryptographic-hashes.rst
+++ b/docs/hazmat/primitives/cryptographic-hashes.rst
@@ -28,6 +28,9 @@ Message Digests
>>> digest.finalize()
'l\xa1=R\xcap\xc8\x83\xe0\xf0\xbb\x10\x1eBZ\x89\xe8bM\xe5\x1d\xb2\xd29%\x93\xafj\x84\x11\x80\x90'
+ If the backend doesn't support the requested ``algorithm`` an
+ :class:`~cryptography.exceptions.UnsupportedAlgorithm` will be raised.
+
Keep in mind that attacks against cryptographic hashes only get stronger
with time, and that often algorithms that were once thought to be strong,
become broken. Because of this it's important to include a plan for