aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/twofactor.rst
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-06 14:10:59 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-06 14:10:59 -0800
commit8b347932fb3612e622d07643af62ed939976b9cb (patch)
tree72837619ab4e9064ff50649f245ed3ee316ce66e /docs/hazmat/primitives/twofactor.rst
parent25d24de1417844f95b247365a3fb24f17bf120ff (diff)
parent1e8aa9b09351bf0fb47bed24defc4d9f37560e31 (diff)
downloadcryptography-8b347932fb3612e622d07643af62ed939976b9cb.tar.gz
cryptography-8b347932fb3612e622d07643af62ed939976b9cb.tar.bz2
cryptography-8b347932fb3612e622d07643af62ed939976b9cb.zip
Merge branch 'master' into exception-heirarchy-refactor
Conflicts: cryptography/hazmat/backends/openssl/backend.py
Diffstat (limited to 'docs/hazmat/primitives/twofactor.rst')
-rw-r--r--docs/hazmat/primitives/twofactor.rst14
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/hazmat/primitives/twofactor.rst b/docs/hazmat/primitives/twofactor.rst
index 3df1a147..3912d483 100644
--- a/docs/hazmat/primitives/twofactor.rst
+++ b/docs/hazmat/primitives/twofactor.rst
@@ -47,10 +47,11 @@ 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 TypeError: 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()`.
+ :class:`~cryptography.hazmat.primitives.hashes.SHA512()` or if the
+ ``length`` parameter is not an integer.
.. method:: generate(counter)
@@ -142,10 +143,11 @@ 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 TypeError: 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()`.
+ :class:`~cryptography.hazmat.primitives.hashes.SHA512()` or if the
+ ``length`` parameter is not an integer.
.. method:: generate(time)