aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/twofactor.rst
diff options
context:
space:
mode:
authorAyrx <terrycwk1994@gmail.com>2014-03-04 01:12:07 +0800
committerAyrx <terrycwk1994@gmail.com>2014-03-04 01:12:07 +0800
commit9ab901df604177ea331b59b94d513af50af8f8e1 (patch)
treeb7f3a360212430430dbae2f5a046c2f73f715a99 /docs/hazmat/primitives/twofactor.rst
parent5b83d9bf238343621e9bc6d2ba459652cd3a01b7 (diff)
downloadcryptography-9ab901df604177ea331b59b94d513af50af8f8e1.tar.gz
cryptography-9ab901df604177ea331b59b94d513af50af8f8e1.tar.bz2
cryptography-9ab901df604177ea331b59b94d513af50af8f8e1.zip
Updated documentation for HOTP and TOTP TypeError
Diffstat (limited to 'docs/hazmat/primitives/twofactor.rst')
-rw-r--r--docs/hazmat/primitives/twofactor.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/hazmat/primitives/twofactor.rst b/docs/hazmat/primitives/twofactor.rst
index 0e781439..3912d483 100644
--- a/docs/hazmat/primitives/twofactor.rst
+++ b/docs/hazmat/primitives/twofactor.rst
@@ -50,7 +50,8 @@ codes (HMAC).
: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)
@@ -145,7 +146,8 @@ similar to the following code.
: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)