diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-09-09 21:41:03 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-09-10 19:47:50 -0500 |
commit | 13f108f926a84eec9c0598164f25cedaece567e3 (patch) | |
tree | c4a715ef2166bb590c94dba251b4be7fd250d43f /docs/primitives/symmetric-encryption.rst | |
parent | 180606f3e7fd9083567e9754fca39e44b5b06b15 (diff) | |
download | cryptography-13f108f926a84eec9c0598164f25cedaece567e3.tar.gz cryptography-13f108f926a84eec9c0598164f25cedaece567e3.tar.bz2 cryptography-13f108f926a84eec9c0598164f25cedaece567e3.zip |
Add ECB class + docs + tests
* Slightly refactors test_nist to allow fetching of data that has no IV
* Does not modify create_block_cipher_context (next commit)
Diffstat (limited to 'docs/primitives/symmetric-encryption.rst')
-rw-r--r-- | docs/primitives/symmetric-encryption.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst index 1b8d1d73..8a9bbbdf 100644 --- a/docs/primitives/symmetric-encryption.rst +++ b/docs/primitives/symmetric-encryption.rst @@ -67,3 +67,15 @@ Modes ``block_size`` of the cipher. Do not reuse an ``initialization_vector`` with a given ``key``. + + +Insecure Modes +-------------- + +.. class:: cryptography.primitives.block.modes.ECB() + + ECB (Electronic Code Book) is the simplest mode of operation for block + ciphers. The data is separated into blocks and each block is encrypted + separately. This means identical plaintext blocks will always result in + identical encrypted blocks. Due to this property it is not recommended + for use. Really, don't use it. Just. Don't. |