aboutsummaryrefslogtreecommitdiffstats
path: root/docs/primitives/symmetric-encryption.rst
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-09-10 21:30:50 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-09-10 21:31:27 -0500
commit6f412a0fc35386ad980c5b3fa2bdb3c90436f3b6 (patch)
treeec1d89b0f65afad89b688762643e2cd7d53d5db0 /docs/primitives/symmetric-encryption.rst
parentc9e91e8cc1d8a5e20ec4541328afabe5d633228b (diff)
downloadcryptography-6f412a0fc35386ad980c5b3fa2bdb3c90436f3b6.tar.gz
cryptography-6f412a0fc35386ad980c5b3fa2bdb3c90436f3b6.tar.bz2
cryptography-6f412a0fc35386ad980c5b3fa2bdb3c90436f3b6.zip
add output feedback mode support + test vectors (aes)
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 d0429d4b..7ec42a30 100644
--- a/docs/primitives/symmetric-encryption.rst
+++ b/docs/primitives/symmetric-encryption.rst
@@ -68,6 +68,19 @@ Modes
reuse an ``initialization_vector`` with
a given ``key``.
+.. class:: cryptography.primitives.block.modes.OFB(initialization_vector)
+
+ OFB (Output 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
--------------