aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-15 10:37:59 -0430
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-15 10:37:59 -0430
commit53faebcfdd7154d1f481ef7e0cc62a1a0c1a8334 (patch)
treeeb71a2f274bd80b0208e1cfdff03b57671f72561 /docs/hazmat/primitives
parentb8a9c9e6243716b353b0786dae1e6e7d94f474a8 (diff)
parenta8d6b047b59794037a7be8fbfce60eedbedc100d (diff)
downloadcryptography-53faebcfdd7154d1f481ef7e0cc62a1a0c1a8334.tar.gz
cryptography-53faebcfdd7154d1f481ef7e0cc62a1a0c1a8334.tar.bz2
cryptography-53faebcfdd7154d1f481ef7e0cc62a1a0c1a8334.zip
Merge pull request #798 from Ayrx/add-backend-check-to-twofactor
Added backend check to twofactor primitives
Diffstat (limited to 'docs/hazmat/primitives')
-rw-r--r--docs/hazmat/primitives/twofactor.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/twofactor.rst b/docs/hazmat/primitives/twofactor.rst
index 3912d483..124d0ef5 100644
--- a/docs/hazmat/primitives/twofactor.rst
+++ b/docs/hazmat/primitives/twofactor.rst
@@ -52,6 +52,9 @@ codes (HMAC).
:class:`~cryptography.hazmat.primitives.hashes.SHA256()` or
:class:`~cryptography.hazmat.primitives.hashes.SHA512()` or if the
``length`` parameter is not an integer.
+ :raises cryptography.exceptions.UnsupportedInterface: This is raised if the
+ provided ``backend`` does not implement
+ :class:`~cryptography.hazmat.backends.interfaces.HMACBackend`
.. method:: generate(counter)
@@ -148,6 +151,9 @@ similar to the following code.
:class:`~cryptography.hazmat.primitives.hashes.SHA256()` or
:class:`~cryptography.hazmat.primitives.hashes.SHA512()` or if the
``length`` parameter is not an integer.
+ :raises cryptography.exceptions.UnsupportedInterface: This is raised if the
+ provided ``backend`` does not implement
+ :class:`~cryptography.hazmat.backends.interfaces.HMACBackend`
.. method:: generate(time)