aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-21 22:19:29 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-21 22:19:29 -0500
commit3e0895c66f3e220d9beaf4f3c53a687a81669bc8 (patch)
treeb39c882a22df548e4785800ad389c08e0fc1b3f6
parentfd56c5f84a247988f4665713eda83452103d3cf4 (diff)
downloadcryptography-3e0895c66f3e220d9beaf4f3c53a687a81669bc8.tar.gz
cryptography-3e0895c66f3e220d9beaf4f3c53a687a81669bc8.tar.bz2
cryptography-3e0895c66f3e220d9beaf4f3c53a687a81669bc8.zip
rename variables in encrypt/decrypt example
-rw-r--r--docs/primitives/symmetric-encryption.rst8
1 files 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.