aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/twofactor.rst
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-01 09:50:14 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-01 09:50:14 -0800
commit58ee8c55acc585fb90a99f6102fa4a7d56072b27 (patch)
tree0212e0804d23e86df32c010325be665335c4b38a /docs/hazmat/primitives/twofactor.rst
parentae62fd3a479bd0caeffec97741318f2c6a15a234 (diff)
downloadcryptography-58ee8c55acc585fb90a99f6102fa4a7d56072b27.tar.gz
cryptography-58ee8c55acc585fb90a99f6102fa4a7d56072b27.tar.bz2
cryptography-58ee8c55acc585fb90a99f6102fa4a7d56072b27.zip
Docs as well
Diffstat (limited to 'docs/hazmat/primitives/twofactor.rst')
-rw-r--r--docs/hazmat/primitives/twofactor.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/hazmat/primitives/twofactor.rst b/docs/hazmat/primitives/twofactor.rst
index 3df1a147..784b8ed1 100644
--- a/docs/hazmat/primitives/twofactor.rst
+++ b/docs/hazmat/primitives/twofactor.rst
@@ -47,8 +47,8 @@ codes (HMAC).
provider.
:raises ValueError: This is raised if the provided ``key`` is shorter than
128 bits or if the ``length`` parameter is not 6, 7 or 8.
- :raises UnsupportedAlgorithm: This is raised if the provided ``algorithm``
- is not :class:`~cryptography.hazmat.primitives.hashes.SHA1()`,
+ :raises ValueError: This is raised if the provided ``algorithm`` is not
+ :class:`~cryptography.hazmat.primitives.hashes.SHA1()`,
:class:`~cryptography.hazmat.primitives.hashes.SHA256()` or
:class:`~cryptography.hazmat.primitives.hashes.SHA512()`.
@@ -142,8 +142,8 @@ similar to the following code.
provider.
:raises ValueError: This is raised if the provided ``key`` is shorter than
128 bits or if the ``length`` parameter is not 6, 7 or 8.
- :raises UnsupportedAlgorithm: This is raised if the provided ``algorithm``
- is not :class:`~cryptography.hazmat.primitives.hashes.SHA1()`,
+ :raises ValueError: This is raised if the provided ``algorithm`` is not
+ :class:`~cryptography.hazmat.primitives.hashes.SHA1()`,
:class:`~cryptography.hazmat.primitives.hashes.SHA256()` or
:class:`~cryptography.hazmat.primitives.hashes.SHA512()`.