aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2016-02-10 18:20:23 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-02-10 18:20:23 -0500
commit4eb228844cfb4fb255d0feac98d0e24a6b9b4c91 (patch)
tree5b08a871825c8cebfc6557feabe16b47c04e37ba /docs
parenta0bef9dfde0e94bd1a01db1b4fa51632ac842ee7 (diff)
parent09828cd4d3136c3fbcf36e2a6cba7f2a26b3350d (diff)
downloadcryptography-4eb228844cfb4fb255d0feac98d0e24a6b9b4c91.tar.gz
cryptography-4eb228844cfb4fb255d0feac98d0e24a6b9b4c91.tar.bz2
cryptography-4eb228844cfb4fb255d0feac98d0e24a6b9b4c91.zip
Merge pull request #2721 from pyca/alex-patch-1
Clearly document that this is a good example
Diffstat (limited to 'docs')
-rw-r--r--docs/hazmat/primitives/symmetric-encryption.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/symmetric-encryption.rst b/docs/hazmat/primitives/symmetric-encryption.rst
index 309c6fd0..d5884897 100644
--- a/docs/hazmat/primitives/symmetric-encryption.rst
+++ b/docs/hazmat/primitives/symmetric-encryption.rst
@@ -334,6 +334,9 @@ Modes
:raises ValueError: This is raised if ``len(tag) < min_tag_length``.
+ An example of securely encrypting and decrypting data with ``AES`` in the
+ ``GCM`` mode looks like:
+
.. testcode::
import os