Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Bagas Sanjaya and committed by
Jason A. Donenfeld
2fbfeb4f ec862155

+3 -3
+3 -3
Documentation/security/siphash.rst
··· 132 132 ============================ 133 133 134 134 Keys should always be generated from a cryptographically secure source of 135 - random numbers, either using get_random_bytes or get_random_once: 135 + random numbers, either using get_random_bytes or get_random_once:: 136 136 137 - hsiphash_key_t key; 138 - get_random_bytes(&key, sizeof(key)); 137 + hsiphash_key_t key; 138 + get_random_bytes(&key, sizeof(key)); 139 139 140 140 If you're not deriving your key from here, you're doing it wrong. 141 141