aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-17 14:02:45 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-17 14:02:45 -0500
commit89b3dd38c32b19853d24caa0f091a0dd78e54084 (patch)
treef2fe1e341989321148bf6577323725e018f365c2
parent4506428ad913d183ad90c0fed668745a6d2aaf33 (diff)
downloadcryptography-89b3dd38c32b19853d24caa0f091a0dd78e54084.tar.gz
cryptography-89b3dd38c32b19853d24caa0f091a0dd78e54084.tar.bz2
cryptography-89b3dd38c32b19853d24caa0f091a0dd78e54084.zip
additional doc work on ctr
-rw-r--r--docs/primitives/symmetric-encryption.rst15
1 files changed, 7 insertions, 8 deletions
diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst
index a1f8ba32..7899e67d 100644
--- a/docs/primitives/symmetric-encryption.rst
+++ b/docs/primitives/symmetric-encryption.rst
@@ -88,14 +88,13 @@ Modes
CTR (Counter) is a mode of operation for block ciphers. It is considered
cryptographically strong.
- :param bytes nonce: Recommended to be random. It is critical to never reuse
- a ```nonce``` (or its subsequent incremented values)
- with a given key. Any reuse of the nonce with the same
- key compromises the security of every message encrypted
- with that key. Must be the same number of bytes as the
- ```block_size``` of the cipher with a given key. The
- nonce does not need to be kept secret and may be
- included alongside the ciphertext.
+ :param bytes nonce: Should be random bytes. It is critical to never reuse a
+ ``nonce`` with a given key. Any reuse of a nonce
+ with the same key compromises the security of every
+ message encrypted with that key. Must be the same
+ number of bytes as the ``block_size`` of the cipher
+ with a given key. The nonce does not need to be kept
+ secret and may be included alongside the ciphertext.
.. class:: cryptography.primitives.block.modes.OFB(initialization_vector)