aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/twofactor.rst
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-12-19 10:29:56 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-12-19 10:29:56 -0800
commit9b6fd8e8b6876cbc88d8cfbe452bb38af256f22d (patch)
tree57b8600328f6175ccd2a156b80868c831de55dea /docs/hazmat/primitives/twofactor.rst
parente4a0e8ad6ae0322635b47284e5d9ad1725bf9731 (diff)
downloadcryptography-9b6fd8e8b6876cbc88d8cfbe452bb38af256f22d.tar.gz
cryptography-9b6fd8e8b6876cbc88d8cfbe452bb38af256f22d.tar.bz2
cryptography-9b6fd8e8b6876cbc88d8cfbe452bb38af256f22d.zip
Anywhere we tell someone to randomly generate something, link the RNG docs. Fixes #1559
Diffstat (limited to 'docs/hazmat/primitives/twofactor.rst')
-rw-r--r--docs/hazmat/primitives/twofactor.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/hazmat/primitives/twofactor.rst b/docs/hazmat/primitives/twofactor.rst
index f19cf0e6..0d86f7cc 100644
--- a/docs/hazmat/primitives/twofactor.rst
+++ b/docs/hazmat/primitives/twofactor.rst
@@ -18,9 +18,9 @@ codes (HMAC).
.. versionadded:: 0.3
HOTP objects take a ``key``, ``length`` and ``algorithm`` parameter. The
- ``key`` should be randomly generated bytes and is recommended to be 160
- bits in length. The ``length`` parameter controls the length of the
- generated one time password and must be >= 6 and <= 8.
+ ``key`` should be :doc:`randomly generated bytes </random-numbers>` and is
+ recommended to be 160 bits in length. The ``length`` parameter controls the
+ length of the generated one time password and must be >= 6 and <= 8.
This is an implementation of :rfc:`4226`.
@@ -113,10 +113,10 @@ similar to the following code.
.. class:: TOTP(key, length, algorithm, time_step, backend)
TOTP objects take a ``key``, ``length``, ``algorithm`` and ``time_step``
- parameter. The ``key`` should be randomly generated bytes and is recommended
- to be as long as your hash function's output (e.g 256-bit for SHA256).
- The ``length`` parameter controls the length of the generated one time
- password and must be >= 6 and <= 8.
+ parameter. The ``key`` should be :doc:`randomly generated bytes
+ </random-numbers>` and is recommended to be as long as your hash function's
+ output (e.g 256-bit for SHA256). The ``length`` parameter controls the
+ length of the generated one time password and must be >= 6 and <= 8.
This is an implementation of :rfc:`6238`.