aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-11-24 11:39:14 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-11-29 17:19:46 -0600
commit0092c205657789e15848c7848eec768720de468f (patch)
tree331ac997c5689fa0b7fc6c962371a7f72a8d826c /docs/hazmat/primitives
parent4664108ac1771b694f917b9ef70d358638371c04 (diff)
downloadcryptography-0092c205657789e15848c7848eec768720de468f.tar.gz
cryptography-0092c205657789e15848c7848eec768720de468f.tar.bz2
cryptography-0092c205657789e15848c7848eec768720de468f.zip
raise TypeError if you attempt to get the tag attribute on a decrypt
* To support this the _AEADCipherContext in base.py now needs to be aware of whether it is encrypting/decrypting
Diffstat (limited to 'docs/hazmat/primitives')
-rw-r--r--docs/hazmat/primitives/symmetric-encryption.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/symmetric-encryption.rst b/docs/hazmat/primitives/symmetric-encryption.rst
index d123d15c..f35357d0 100644
--- a/docs/hazmat/primitives/symmetric-encryption.rst
+++ b/docs/hazmat/primitives/symmetric-encryption.rst
@@ -139,6 +139,7 @@ an "encrypt-then-MAC" formulation as `described by Colin Percival`_.
:return bytes: Returns the tag value as bytes.
:raises: :class:`~cryptography.exceptions.NotYetFinalized` if called
before the context is finalized.
+ :raises TypeError: If called on a decryption context.
.. _symmetric-encryption-algorithms: