aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-09-10 20:24:20 -0700
committerDonald Stufft <donald@stufft.io>2013-09-10 20:24:20 -0700
commit9287c2344c6c91ad838a251d3b6fde2a6ea88b56 (patch)
treeee0d0161e0b8856385e0762653f610b2f36bc851 /docs
parenta672bbe6226648c68cdb628b5b7d67f2e8270698 (diff)
parentc507412ec09e6fa502fbd8587824901e1cf9a935 (diff)
downloadcryptography-9287c2344c6c91ad838a251d3b6fde2a6ea88b56.tar.gz
cryptography-9287c2344c6c91ad838a251d3b6fde2a6ea88b56.tar.bz2
cryptography-9287c2344c6c91ad838a251d3b6fde2a6ea88b56.zip
Merge pull request #57 from reaperhulk/ofb-support
Output feedback mode support + test vectors (aes)
Diffstat (limited to 'docs')
-rw-r--r--docs/primitives/symmetric-encryption.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst
index f028c755..c4f78a79 100644
--- a/docs/primitives/symmetric-encryption.rst
+++ b/docs/primitives/symmetric-encryption.rst
@@ -68,6 +68,17 @@ Modes
reuse an ``initialization_vector`` with
a given ``key``.
+.. class:: cryptography.primitives.block.modes.OFB(nonce)
+
+ OFB (Output Feedback) is a mode of operation for block ciphers. It
+ transforms a block cipher into a stream cipher.
+
+ :param bytes nonce: 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. Reuse of a ``nonce`` with a given
+ ``key`` can allow recovery of the original plaintext.
+
Insecure Modes
--------------