aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/key-derivation-functions.rst
diff options
context:
space:
mode:
authorAyrx <terrycwk1994@gmail.com>2014-03-15 23:29:36 +0800
committerAyrx <terrycwk1994@gmail.com>2014-03-15 23:37:31 +0800
commit6870241a88e208fa5612610f02cc1d57f0f26448 (patch)
tree289fe21850dc4cc08d7fa553193b91db82f560d4 /docs/hazmat/primitives/key-derivation-functions.rst
parent53faebcfdd7154d1f481ef7e0cc62a1a0c1a8334 (diff)
downloadcryptography-6870241a88e208fa5612610f02cc1d57f0f26448.tar.gz
cryptography-6870241a88e208fa5612610f02cc1d57f0f26448.tar.bz2
cryptography-6870241a88e208fa5612610f02cc1d57f0f26448.zip
Added backend check to kdf primitives
Diffstat (limited to 'docs/hazmat/primitives/key-derivation-functions.rst')
-rw-r--r--docs/hazmat/primitives/key-derivation-functions.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/key-derivation-functions.rst b/docs/hazmat/primitives/key-derivation-functions.rst
index 851dbb0b..174b68d2 100644
--- a/docs/hazmat/primitives/key-derivation-functions.rst
+++ b/docs/hazmat/primitives/key-derivation-functions.rst
@@ -84,6 +84,10 @@ Different KDFs are suitable for different tasks such as:
:class:`~cryptography.hazmat.backends.interfaces.PBKDF2HMACBackend`
provider.
+ :raises cryptography.exceptions.UnsupportedInterface: This is raised if the
+ provided ``backend`` does not implement
+ :class:`~cryptography.hazmat.backends.interfaces.PBKDF2HMACBackend`
+
.. method:: derive(key_material)
:param bytes key_material: The input key material. For PBKDF2 this
@@ -183,6 +187,10 @@ Different KDFs are suitable for different tasks such as:
:class:`~cryptography.hazmat.backends.interfaces.HMACBackend`
provider.
+ :raises cryptography.exceptions.UnsupportedInterface: This is raised if the
+ provided ``backend`` does not implement
+ :class:`~cryptography.hazmat.backends.interfaces.HMACBackend`
+
.. method:: derive(key_material)
:param bytes key_material: The input key material.