diff options
Diffstat (limited to 'docs/primitives')
-rw-r--r-- | docs/primitives/symmetric-encryption.rst | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst index be86229b..46d7c07c 100644 --- a/docs/primitives/symmetric-encryption.rst +++ b/docs/primitives/symmetric-encryption.rst @@ -68,16 +68,18 @@ Modes reuse an ``initialization_vector`` with a given ``key``. -.. class:: cryptography.primitives.block.modes.OFB(nonce) +.. 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 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. + :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``. .. class:: cryptography.primitives.block.modes.CFB(initialization_vector) |