aboutsummaryrefslogtreecommitdiffstats
path: root/docs/primitives
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-19 17:23:16 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-21 08:50:09 -0500
commitdec09fc490a09785744e4885f705f231c7ba1eec (patch)
treec1f4add90606eac666d182c8bbbb56ebdb721afb /docs/primitives
parent620c2aec10423c11e49cbffc71efe19a190f9187 (diff)
downloadcryptography-dec09fc490a09785744e4885f705f231c7ba1eec.tar.gz
cryptography-dec09fc490a09785744e4885f705f231c7ba1eec.tar.bz2
cryptography-dec09fc490a09785744e4885f705f231c7ba1eec.zip
update docs to reflect new encryptor API
Diffstat (limited to 'docs/primitives')
-rw-r--r--docs/primitives/symmetric-encryption.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst
index 7899e67d..4f404789 100644
--- a/docs/primitives/symmetric-encryption.rst
+++ b/docs/primitives/symmetric-encryption.rst
@@ -21,7 +21,8 @@ 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))
- >>> cipher.encrypt(b"a secret message") + cipher.finalize()
+ >>> context = cipher.encryptor()
+ >>> context.update(b"a secret message") + context.finalize()
'...'
:param cipher: One of the ciphers described below.