aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/mac
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/mac
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/mac')
-rw-r--r--docs/hazmat/primitives/mac/hmac.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/hazmat/primitives/mac/hmac.rst b/docs/hazmat/primitives/mac/hmac.rst
index 9ce49c8d..ce566c5c 100644
--- a/docs/hazmat/primitives/mac/hmac.rst
+++ b/docs/hazmat/primitives/mac/hmac.rst
@@ -19,9 +19,9 @@ of a message.
HMAC objects take a ``key`` and a
:class:`~cryptography.hazmat.primitives.interfaces.HashAlgorithm` provider.
- The ``key`` should be randomly generated bytes and is recommended to be
- equal in length to the ``digest_size`` of the hash function chosen.
- You must keep the ``key`` secret.
+ The ``key`` should be :doc:`randomly generated bytes </random-numbers>` and
+ is recommended to be equal in length to the ``digest_size`` of the hash
+ function chosen. You must keep the ``key`` secret.
This is an implementation of :rfc:`2104`.