aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-09-11 09:48:04 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-09-11 09:48:04 -0500
commit4223df72cf3d3566ae8ccbce7d31dbae7ee25cdd (patch)
tree9783c827cefc06e1cf7ea446df7b94deb62e0942 /docs
parenta1ec262a3596dbba4ff82ff7d05c4f265f794359 (diff)
downloadcryptography-4223df72cf3d3566ae8ccbce7d31dbae7ee25cdd.tar.gz
cryptography-4223df72cf3d3566ae8ccbce7d31dbae7ee25cdd.tar.bz2
cryptography-4223df72cf3d3566ae8ccbce7d31dbae7ee25cdd.zip
add CFB to documentation
Diffstat (limited to 'docs')
-rw-r--r--docs/primitives/symmetric-encryption.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst
index c4f78a79..be86229b 100644
--- a/docs/primitives/symmetric-encryption.rst
+++ b/docs/primitives/symmetric-encryption.rst
@@ -79,6 +79,19 @@ Modes
of the cipher. Reuse of a ``nonce`` with a given
``key`` can allow recovery of the original plaintext.
+.. class:: cryptography.primitives.block.modes.CFB(initialization_vector)
+
+ CFB (Cipher Feedback) is a mode of operation for block ciphers. It
+ transforms a block cipher into a stream cipher.
+
+ :param bytes initialization_vector: Must be random bytes. They do not need
+ to be kept secret (they can be included
+ in a transmitted message). Must be the
+ same number of bytes as the
+ ``block_size`` of the cipher. Do not
+ reuse an ``initialization_vector`` with
+ a given ``key``.
+
Insecure Modes
--------------