Skip to content

Commit

Permalink
Fully excised padding from the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Aug 10, 2013
1 parent 2416c01 commit 641a3a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/primitives/symmetric-encryption.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ where the encrypter and decrypter both use the same key.

.. code-block:: pycon
>>> from cryptography.primitives.block import BlockCipher, cipher, mode, 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))

This comment has been minimized.

Copy link
@hynek

hynek Aug 10, 2013

Contributor

ciphers not cipher and modes not mode

>>> cipher.encrypt("my secret message") + cipher.finalize()
# The ciphertext
[...]
Expand All @@ -36,7 +36,7 @@ where the encrypter and decrypter both use the same key.
Ciphers
~~~~~~~

.. class:: cryptography.primitives.block.cipher.AES(key)
.. class:: cryptography.primitives.block.ciphers.AES(key)

AES (Advanced Encryption Standard) is a block cipher standardized by NIST.
AES is both fast, and cryptographically strong. It is a good default
Expand All @@ -49,7 +49,7 @@ Ciphers
Modes
~~~~~

.. class:: cryptography.primitives.block.mode.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.
Expand Down

0 comments on commit 641a3a0

Please sign in to comment.