aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-08-10 15:38:14 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2013-08-10 15:38:14 -0400
commit93b1df6049c5b80c336153a7be0e3485fa2611bc (patch)
treed9826963a7ae29bb203e352109c4aa1fe9b1caf9
parent64e9a64f720124cf72d1b9b77df304ed99d0442a (diff)
downloadcryptography-93b1df6049c5b80c336153a7be0e3485fa2611bc.tar.gz
cryptography-93b1df6049c5b80c336153a7be0e3485fa2611bc.tar.bz2
cryptography-93b1df6049c5b80c336153a7be0e3485fa2611bc.zip
Remove padding from the docs.
-rw-r--r--docs/primitives/symmetric-encryption.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst
index 090e8e29..05aea0fa 100644
--- a/docs/primitives/symmetric-encryption.rst
+++ b/docs/primitives/symmetric-encryption.rst
@@ -12,8 +12,8 @@ where the encrypter and decrypter both use the same key.
.. code-block:: pycon
- >>> from cryptography.primitives.block import BlockCipher, ciphers, modes, padding
- >>> cipher = BlockCipher(cipher.AES(key), mode.CBC(iv, padding.PKCS7()))
+ >>> from cryptography.primitives.block import BlockCipher, ciphers, modes
+ >>> cipher = BlockCipher(cipher.AES(key), mode.CBC(iv))
>>> cipher.encrypt("my secret message") + cipher.finalize()
# The ciphertext
[...]
@@ -49,7 +49,7 @@ Ciphers
Modes
~~~~~
-.. class:: cryptography.primitives.block.modes.CBC(initialization_vector, padding)
+.. class:: cryptography.primitives.block.modes.CBC(initialization_vector)
CBC (Cipher block chaining) is a mode of operation for block ciphers. It is
considered cryptographically strong.