aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-08-08 11:13:46 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-08-08 11:13:46 -0700
commit48ec9a30b0a9c5d0818625dab627a576b57797cf (patch)
treeab4cba3ccdd5cf67d27cdcf182704e6c75163c33 /docs
parent5ba2dfa1c03f7f923d99f0879e084aee373f6f34 (diff)
downloadcryptography-48ec9a30b0a9c5d0818625dab627a576b57797cf.tar.gz
cryptography-48ec9a30b0a9c5d0818625dab627a576b57797cf.tar.bz2
cryptography-48ec9a30b0a9c5d0818625dab627a576b57797cf.zip
Try to document CBC
Diffstat (limited to 'docs')
-rw-r--r--docs/primitives/symmetric-encryption.rst11
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst
index 750ab88d..4675ebfc 100644
--- a/docs/primitives/symmetric-encryption.rst
+++ b/docs/primitives/symmetric-encryption.rst
@@ -39,10 +39,17 @@ Ciphers
choice for encryption.
:param bytes key: The secret key, either ``128``, ``192``, or ``256`` bits.
+ This must be kept secret.
Modes
~~~~~
-CBC
-+++
+.. class:: cryptographically.primitives.CBC(initialization_vector)
+
+ CBC (Cipher block chaining) is a mode of operation for block ciphers. It is
+ considered cryptographically strong.
+
+ :param bytes initialization_vector: Must be random bytes. They do not need
+ to be kept secret (they can be included
+ in a transmitted message).