diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-03 10:14:54 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-03 10:14:54 -0800 |
commit | c898e8d1328e6c0c65c13923a9581f7b41911ae3 (patch) | |
tree | 2b13c903789b4862ebca583c3bf4061e21d50df3 /docs/hazmat | |
parent | 6963d50ff7c867d49bbd62243c3aa0a861a8e7b6 (diff) | |
parent | 9ab901df604177ea331b59b94d513af50af8f8e1 (diff) | |
download | cryptography-c898e8d1328e6c0c65c13923a9581f7b41911ae3.tar.gz cryptography-c898e8d1328e6c0c65c13923a9581f7b41911ae3.tar.bz2 cryptography-c898e8d1328e6c0c65c13923a9581f7b41911ae3.zip |
Merge pull request #720 from Ayrx/hotp-length-type-check
Added length type check to HOTP and corresponding test
Diffstat (limited to 'docs/hazmat')
-rw-r--r-- | docs/hazmat/primitives/twofactor.rst | 6 |
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) |