summaryrefslogtreecommitdiffstats
path: root/Documentation/security
diff options
context:
space:
mode:
authorDov Murik <dovmurik@linux.ibm.com>2022-07-12 12:44:55 +0200
committerJonathan Corbet <corbet@lwn.net>2022-07-13 22:01:22 +0200
commit12fe434314c8572c8043c6eee6799d2ccac99f26 (patch)
treebb5e98f75104a7f97c583ba79ef3db1e851a7906 /Documentation/security
parentMAINTAINERS: mark linux-doc-tw-discuss mailing list moderated (diff)
downloadlinux-12fe434314c8572c8043c6eee6799d2ccac99f26.tar.xz
linux-12fe434314c8572c8043c6eee6799d2ccac99f26.zip
Documentation: siphash: Fix typo in the name of offsetofend macro
The siphash documentation misspelled "offsetendof" instead of "offsetofend". Fixes: 2c956a60778cbb ("siphash: add cryptographically secure PRF") Signed-off-by: Dov Murik <dovmurik@linux.ibm.com> Acked-by: Jason A. Donenfeld <Jason@zx2c4.com> Link: https://lore.kernel.org/r/20220712104455.1408150-1-dovmurik@linux.ibm.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/security')
-rw-r--r--Documentation/security/siphash.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/security/siphash.rst b/Documentation/security/siphash.rst
index a10380cb78e5..023bd95c74a5 100644
--- a/Documentation/security/siphash.rst
+++ b/Documentation/security/siphash.rst
@@ -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::