Skip to content

Commit

Permalink
Documentation: siphash: Fix typo in the name of offsetofend macro
Browse files Browse the repository at this point in the history
The siphash documentation misspelled "offsetendof" instead of
"offsetofend".

Fixes: 2c956a6 ("siphash: add cryptographically secure PRF")
Signed-off-by: Dov Murik <[email protected]>
Acked-by: Jason A. Donenfeld <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
dubek authored and Jonathan Corbet committed Jul 13, 2022
1 parent d5a0cdb commit 12fe434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/security/siphash.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Often times the XuY functions will not be large enough, and instead you'll
want to pass a pre-filled struct to siphash. When doing this, it's important
to always ensure the struct has no padding holes. The easiest way to do this
is to simply arrange the members of the struct in descending order of size,
and to use offsetendof() instead of sizeof() for getting the size. For
and to use offsetofend() instead of sizeof() for getting the size. For
performance reasons, if possible, it's probably a good thing to align the
struct to the right boundary. Here's an example::

Expand Down

0 comments on commit 12fe434

Please sign in to comment.