diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-02 09:10:40 -0430 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-02 09:10:40 -0430 |
commit | 43b4f1c43298ee8804396c89f1684a1012b87ead (patch) | |
tree | 83a7cacc9c717c36cdded66154e115deeec9a659 /docs/hazmat/primitives | |
parent | 48610a5190286ce59204fecf096d217abaf4ed23 (diff) | |
parent | 9b1a82e42bdd546220225430aa06e3b732fb0155 (diff) | |
download | cryptography-43b4f1c43298ee8804396c89f1684a1012b87ead.tar.gz cryptography-43b4f1c43298ee8804396c89f1684a1012b87ead.tar.bz2 cryptography-43b4f1c43298ee8804396c89f1684a1012b87ead.zip |
Merge pull request #703 from alex/change-exceptino-type
Change exception in use
Diffstat (limited to 'docs/hazmat/primitives')
-rw-r--r-- | docs/hazmat/primitives/twofactor.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/hazmat/primitives/twofactor.rst b/docs/hazmat/primitives/twofactor.rst index 3df1a147..0e781439 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 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()`. @@ -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 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()`. |