Skip to content

Commit 2fbfeb4

Browse files
bagasmezx2c4
authored andcommitted
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>
1 parent ec86215 commit 2fbfeb4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Documentation/security/siphash.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ Generating a HalfSipHash key
132132
============================
133133

134134
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::
136136

137-
hsiphash_key_t key;
138-
get_random_bytes(&key, sizeof(key));
137+
hsiphash_key_t key;
138+
get_random_bytes(&key, sizeof(key));
139139

140140
If you're not deriving your key from here, you're doing it wrong.
141141

0 commit comments

Comments
 (0)