aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBagas Sanjaya <[email protected]>2022-04-17 14:50:58 +0700
committerJason A. Donenfeld <[email protected]>2022-04-25 17:26:40 +0200
commit2fbfeb4fa61684955980b99603c29d2002a67118 (patch)
tree39db1cc3b5ae194bc33cda4d0e6fec0c7575bd22
parentec862155c3ccbde59644336eec58468e7d07519b (diff)
Documentation: siphash: enclose HalfSipHash usage example in the literal block
Render usage example of HalfSipHash function as code block by using literal block syntax. Cc: Jonathan Corbet <[email protected]> Cc: Eric Biggers <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Mauro Carvalho Chehab <[email protected]> Cc: [email protected] Signed-off-by: Bagas Sanjaya <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
-rw-r--r--Documentation/security/siphash.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/security/siphash.rst b/Documentation/security/siphash.rst
index 42794a7e052f..96b1492f4773 100644
--- a/Documentation/security/siphash.rst
+++ b/Documentation/security/siphash.rst
@@ -132,10 +132,10 @@ Generating a HalfSipHash key
============================
Keys should always be generated from a cryptographically secure source of
-random numbers, either using get_random_bytes or get_random_once:
+random numbers, either using get_random_bytes or get_random_once::
-hsiphash_key_t key;
-get_random_bytes(&key, sizeof(key));
+ hsiphash_key_t key;
+ get_random_bytes(&key, sizeof(key));
If you're not deriving your key from here, you're doing it wrong.