aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/hmac.rst
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2013-12-21 21:26:55 +0000
committerAlex Stapleton <alexs@prol.etari.at>2013-12-21 21:32:02 +0000
commit447d64fb69e19c0059e3ba18ef3b1317a716a7c4 (patch)
tree39debf1be2daed29df51e240164f4f229caf9c64 /docs/hazmat/primitives/hmac.rst
parent9b9318d79ba5927603b120411d13b607938cae56 (diff)
downloadcryptography-447d64fb69e19c0059e3ba18ef3b1317a716a7c4.tar.gz
cryptography-447d64fb69e19c0059e3ba18ef3b1317a716a7c4.tar.bz2
cryptography-447d64fb69e19c0059e3ba18ef3b1317a716a7c4.zip
Raise UnsupportedAlgorithm when initing HMACs
Diffstat (limited to 'docs/hazmat/primitives/hmac.rst')
-rw-r--r--docs/hazmat/primitives/hmac.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/hmac.rst b/docs/hazmat/primitives/hmac.rst
index 0c0d0220..0547b7d2 100644
--- a/docs/hazmat/primitives/hmac.rst
+++ b/docs/hazmat/primitives/hmac.rst
@@ -34,6 +34,8 @@ message.
>>> h.finalize()
'#F\xdaI\x8b"e\xc4\xf1\xbb\x9a\x8fc\xff\xf5\xdex.\xbc\xcd/+\x8a\x86\x1d\x84\'\xc3\xa6\x1d\xd8J'
+ If the backend doesn't support the requested ``algorithm`` an
+ :class:`~cryptography.exceptions.UnsupportedAlgorithm` will be raised.
:param key: Secret key as ``bytes``.
:param algorithm: A