aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.