diff options
author | David Reid <dreid@dreid.org> | 2013-11-20 10:49:13 -0800 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2013-11-20 10:49:13 -0800 |
commit | 63fa19ace98c2c88a6065acc9e944a71480ff651 (patch) | |
tree | f06d37f00d6df05e387e082383fdbd2bdcbeea17 /docs/hazmat/primitives/symmetric-encryption.rst | |
parent | 846460ae25554cbf007c0b65f8d7997d543ea53e (diff) | |
download | cryptography-63fa19ace98c2c88a6065acc9e944a71480ff651.tar.gz cryptography-63fa19ace98c2c88a6065acc9e944a71480ff651.tar.bz2 cryptography-63fa19ace98c2c88a6065acc9e944a71480ff651.zip |
Use backend as keyword argument everywhere.
Diffstat (limited to 'docs/hazmat/primitives/symmetric-encryption.rst')
-rw-r--r-- | docs/hazmat/primitives/symmetric-encryption.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/hazmat/primitives/symmetric-encryption.rst b/docs/hazmat/primitives/symmetric-encryption.rst index e7d019da..76f68a12 100644 --- a/docs/hazmat/primitives/symmetric-encryption.rst +++ b/docs/hazmat/primitives/symmetric-encryption.rst @@ -37,7 +37,7 @@ an "encrypt-then-MAC" formulation as `described by Colin Percival`_. .. doctest:: >>> from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes - >>> cipher = Cipher(algorithms.AES(key), modes.CBC(iv), backend) + >>> cipher = Cipher(algorithms.AES(key), modes.CBC(iv), backend=backend) >>> encryptor = cipher.encryptor() >>> ct = encryptor.update(b"a secret message") + encryptor.finalize() >>> decryptor = cipher.decryptor() @@ -179,7 +179,7 @@ Weak Ciphers >>> from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes >>> algorithm = algorithms.ARC4(key) - >>> cipher = Cipher(algorithm, mode=None) + >>> cipher = Cipher(algorithm, mode=None, backend=backend) >>> encryptor = cipher.encryptor() >>> ct = encryptor.update(b"a secret message") >>> decryptor = cipher.decryptor() |