From d1afe39ac8961d865974b746ff072ecedc9abeee Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 22 Oct 2013 08:24:44 -0500 Subject: fix typo and show result of decryption in docs --- docs/primitives/symmetric-encryption.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst index 2021356c..544c7163 100644 --- a/docs/primitives/symmetric-encryption.rst +++ b/docs/primitives/symmetric-encryption.rst @@ -15,7 +15,7 @@ where the encrypter and decrypter both use the same key. Block ciphers work by encrypting content in chunks, often 64- or 128-bits. They combine an underlying algorithm (such as AES), with a mode (such as - CBC, CTR, or GCM).A simple example of encrypting (and then decrypting) + CBC, CTR, or GCM). A simple example of encrypting (and then decrypting) content with AES is: .. doctest:: @@ -26,7 +26,7 @@ where the encrypter and decrypter both use the same key. >>> ct = encryptor.update(b"a secret message") + encryptor.finalize() >>> decryptor = cipher.decryptor() >>> decryptor.update(ct) + decryptor.finalize() - '...' + b"a secret message" :param cipher: One of the ciphers described below. :param mode: One of the modes described below. -- cgit v1.2.3