aboutsummaryrefslogtreecommitdiffstats
path: root/docs/primitives
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-08-08 11:39:21 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-08-08 11:39:21 -0700
commit4dd1c2701ae098325d7fdbebfcf721b1c5a51167 (patch)
tree8ea24f39577ade21276e346b8052b5e343ec34c9 /docs/primitives
parenta1b98f9ba3ce90d6f70a9c67e9d7c4eef7c960eb (diff)
downloadcryptography-4dd1c2701ae098325d7fdbebfcf721b1c5a51167.tar.gz
cryptography-4dd1c2701ae098325d7fdbebfcf721b1c5a51167.tar.bz2
cryptography-4dd1c2701ae098325d7fdbebfcf721b1c5a51167.zip
Move the modules around
Diffstat (limited to 'docs/primitives')
-rw-r--r--docs/primitives/symmetric-encryption.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst
index 4e02907d..f79bcacb 100644
--- a/docs/primitives/symmetric-encryption.rst
+++ b/docs/primitives/symmetric-encryption.rst
@@ -13,9 +13,8 @@ or GCM). A simple example of encrypting content with AES is:
.. code-block:: pycon
- >>> from cryptography.primitives.aes import AES
- >>> from cryptography.primitives.block import BlockCipher, CBC
- >>> cipher = BlockCipher(AES(key), CBC(iv))
+ >>> from cryptography.primitives.block import BlockCipher, cipher, mode
+ >>> cipher = BlockCipher(cipher.AES(key), mode.CBC(iv))
>>> cipher.encrypt("my secret message") + cipher.finalize()
# The ciphertext
[...]
@@ -32,7 +31,7 @@ whatever data is left.
Ciphers
~~~~~~~
-.. class:: cryptography.primitives.aes.AES(key)
+.. class:: cryptography.primitives.block.cipher.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
@@ -45,7 +44,7 @@ Ciphers
Modes
~~~~~
-.. class:: cryptography.primitives.block.CBC(initialization_vector)
+.. class:: cryptography.primitives.block.mode.CBC(initialization_vector)
CBC (Cipher block chaining) is a mode of operation for block ciphers. It is
considered cryptographically strong.