From 3e0895c66f3e220d9beaf4f3c53a687a81669bc8 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 21 Oct 2013 22:19:29 -0500 Subject: rename variables in encrypt/decrypt example --- docs/primitives/symmetric-encryption.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst index a8d9485d..1ec1ee01 100644 --- a/docs/primitives/symmetric-encryption.rst +++ b/docs/primitives/symmetric-encryption.rst @@ -22,10 +22,10 @@ where the encrypter and decrypter both use the same key. >>> from cryptography.primitives.block import BlockCipher, ciphers, modes >>> cipher = BlockCipher(ciphers.AES(key), modes.CBC(iv)) - >>> encrypt = cipher.encryptor() - >>> ct = encrypt.update(b"a secret message") + encrypt.finalize() - >>> decrypt = cipher.decryptor() - >>> decrypt.update(ct) + decrypt.finalize() + >>> encryptor = cipher.encryptor() + >>> ct = encryptor.update(b"a secret message") + encryptor.finalize() + >>> decryptor = cipher.decryptor() + >>> decryptor.update(ct) + decryptor.finalize() '...' :param cipher: One of the ciphers described below. -- cgit v1.2.3