aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/symmetric-encryption.rst
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-11-13 13:30:30 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-11-13 13:30:30 -0800
commit34511c697f6f17915b5fe5a58214bb38d779f4a8 (patch)
tree8a51d2a402472a8071e641107eda2ee037f83349 /docs/hazmat/primitives/symmetric-encryption.rst
parentc2cddd2b1f0bd935ed53ee49446e268d9bf874e7 (diff)
downloadcryptography-34511c697f6f17915b5fe5a58214bb38d779f4a8.tar.gz
cryptography-34511c697f6f17915b5fe5a58214bb38d779f4a8.tar.bz2
cryptography-34511c697f6f17915b5fe5a58214bb38d779f4a8.zip
Use AlreadyFinalized for symmetric ciphers
Diffstat (limited to 'docs/hazmat/primitives/symmetric-encryption.rst')
-rw-r--r--docs/hazmat/primitives/symmetric-encryption.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/symmetric-encryption.rst b/docs/hazmat/primitives/symmetric-encryption.rst
index 28b143ba..950ea8b0 100644
--- a/docs/hazmat/primitives/symmetric-encryption.rst
+++ b/docs/hazmat/primitives/symmetric-encryption.rst
@@ -79,6 +79,7 @@ an "encrypt-then-MAC" formulation as `described by Colin Percival`_.
:param bytes data: The data you wish to pass into the context.
:return bytes: Returns the data that was encrypted or decrypted.
+ :raises cryptography.exceptions.AlreadyFinalized: See :meth:`finalize`
When the ``Cipher`` was constructed in a mode that turns it into a
stream cipher (e.g.
@@ -90,6 +91,10 @@ an "encrypt-then-MAC" formulation as `described by Colin Percival`_.
:return bytes: Returns the remainder of the data.
+ Once ``finalize`` is called this object can no longer be used and
+ :meth:`update` will raise
+ :class:`~cryptography.exceptions.AlreadyFinalized`.
+
Algorithms
~~~~~~~~~~