aboutsummaryrefslogtreecommitdiffstats
path: root/docs/primitives/symmetric-encryption.rst
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2013-09-11 16:22:26 -0700
committerDavid Reid <dreid@dreid.org>2013-09-11 16:22:26 -0700
commitdd3c783d59010faddb1cbc1d2d16e5792b913ecf (patch)
tree9783c827cefc06e1cf7ea446df7b94deb62e0942 /docs/primitives/symmetric-encryption.rst
parent9287c2344c6c91ad838a251d3b6fde2a6ea88b56 (diff)
parent4223df72cf3d3566ae8ccbce7d31dbae7ee25cdd (diff)
downloadcryptography-dd3c783d59010faddb1cbc1d2d16e5792b913ecf.tar.gz
cryptography-dd3c783d59010faddb1cbc1d2d16e5792b913ecf.tar.bz2
cryptography-dd3c783d59010faddb1cbc1d2d16e5792b913ecf.zip
Merge pull request #59 from reaperhulk/cfb-support
CFB support
Diffstat (limited to 'docs/primitives/symmetric-encryption.rst')
-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
--------------