diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-08-08 19:36:44 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-08-08 19:36:44 -0700 |
commit | 95b8620e738b36a1e6e4bd015149bcb0851b3da9 (patch) | |
tree | 779d7b8198cd4300f06857cd770f64a8f1befc86 /docs/primitives | |
parent | 4bc451924ce0f98c0300aa13463ea8e995ea8c93 (diff) | |
download | cryptography-95b8620e738b36a1e6e4bd015149bcb0851b3da9.tar.gz cryptography-95b8620e738b36a1e6e4bd015149bcb0851b3da9.tar.bz2 cryptography-95b8620e738b36a1e6e4bd015149bcb0851b3da9.zip |
Started stubbing stuff out, including a simple test, now is the part where we
write some actual cryptographic software. So yeah.
Diffstat (limited to 'docs/primitives')
-rw-r--r-- | docs/primitives/symmetric-encryption.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst index fe074f3e..29eb2823 100644 --- a/docs/primitives/symmetric-encryption.rst +++ b/docs/primitives/symmetric-encryption.rst @@ -12,7 +12,7 @@ where the encrypter and decrypter both use the same key. .. code-block:: pycon - >>> from cryptography.primitives.block import BlockCipher, cipher, mode, padding + >>> from cryptography.primitives.block import BlockCipher, ciphers, modes, padding >>> cipher = BlockCipher(cipher.AES(key), mode.CBC(iv, padding.PKCS7())) >>> cipher.encrypt("my secret message") + cipher.finalize() # The ciphertext @@ -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 @@ -49,7 +49,7 @@ Ciphers Modes ~~~~~ -.. class:: cryptography.primitives.block.mode.CBC(initialization_vector, padding) +.. class:: cryptography.primitives.block.modes.CBC(initialization_vector, padding) CBC (Cipher block chaining) is a mode of operation for block ciphers. It is considered cryptographically strong. |