aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-12-21 17:31:48 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-12-21 17:31:48 -0600
commitca73504e62e2c55a7235f94c78cb8ee4d3718590 (patch)
tree3f01c56e1c16113be6da6d368b61cd1e0d570409 /docs/hazmat
parentf7b4ede584f5612546a07eb085eb5672629dcb96 (diff)
downloadcryptography-ca73504e62e2c55a7235f94c78cb8ee4d3718590.tar.gz
cryptography-ca73504e62e2c55a7235f94c78cb8ee4d3718590.tar.bz2
cryptography-ca73504e62e2c55a7235f94c78cb8ee4d3718590.zip
add note regarding not truncating tags
Diffstat (limited to 'docs/hazmat')
-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 f4d0457a..8ed64c7c 100644
--- a/docs/hazmat/primitives/symmetric-encryption.rst
+++ b/docs/hazmat/primitives/symmetric-encryption.rst
@@ -352,6 +352,11 @@ Modes
Do not reuse an ``initialization_vector``
with a given ``key``.
+ .. note::
+
+ Do not truncate the GCM authentication tag unless absolutely necessary.
+ If you must truncate the minimum allowable length is 4 bytes.
+
:param bytes tag: The tag bytes to verify during decryption. When encrypting
this must be None.