aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-01-28 06:58:43 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-01-28 06:58:43 -0800
commite19e89f3e29c057a8250f5f63dde444b495259f7 (patch)
treeb441277ae9e055f20e7daeafb67ea4f2eb0c6d81 /docs/hazmat/primitives
parent5484f72a8f83b8488bd22cae98be7c0c3576991a (diff)
downloadcryptography-e19e89f3e29c057a8250f5f63dde444b495259f7.tar.gz
cryptography-e19e89f3e29c057a8250f5f63dde444b495259f7.tar.bz2
cryptography-e19e89f3e29c057a8250f5f63dde444b495259f7.zip
Enforce that these may only be called once
Diffstat (limited to 'docs/hazmat/primitives')
-rw-r--r--docs/hazmat/primitives/interfaces.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst
index ddccb773..12644f4c 100644
--- a/docs/hazmat/primitives/interfaces.rst
+++ b/docs/hazmat/primitives/interfaces.rst
@@ -216,6 +216,11 @@ Key Derivation Functions
could be either random material, or a user
supplied password.
:return: The new key.
+ :raises cryptography.exceptions.AlreadyFinalized: This is raised when
+ :meth:`derive` or
+ :meth:`verify` is
+ called more than
+ once.
This generates and returns a new key from the supplied key material.
@@ -229,6 +234,11 @@ Key Derivation Functions
:raises cryptography.exceptions.InvalidKey: This is raised when the
derived key does not match
the expected key.
+ :raises cryptography.exceptions.AlreadyFinalized: This is raised when
+ :meth:`derive` or
+ :meth:`verify` is
+ called more than
+ once.
This checks whether deriving a new key from the supplied
``key_material`` generates the same key as the ``expected_key``, and