]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Documentation: siphash: enclose HalfSipHash usage example in the literal block
authorBagas Sanjaya <bagasdotme@gmail.com>
Sun, 17 Apr 2022 07:50:58 +0000 (14:50 +0700)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 25 Apr 2022 15:26:40 +0000 (17:26 +0200)
Render usage example of HalfSipHash function as code block by using
literal block syntax.

Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Eric Biggers <ebiggers@google.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Documentation/security/siphash.rst

index 42794a7e052f1e926fdd13453776f7563a5084eb..96b1492f4773eb4aa51721c1bc6b1278eb7148d9 100644 (file)
@@ -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.