summaryrefslogtreecommitdiffstats
path: root/include/crypto/blake2s.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-12-23 09:09:56 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2021-01-02 22:41:38 +0100
commit7d87131fadd53a0401b5c078dd64e58c3ea6994c (patch)
treeb1ecba0dbfe8253df79020f1bb2e43b39ef3d333 /include/crypto/blake2s.h
parentcrypto: blake2s - optimize blake2s initialization (diff)
downloadlinux-7d87131fadd53a0401b5c078dd64e58c3ea6994c.tar.xz
linux-7d87131fadd53a0401b5c078dd64e58c3ea6994c.zip
crypto: blake2s - add comment for blake2s_state fields
The first three fields of 'struct blake2s_state' are used in assembly code, which isn't immediately obvious, so add a comment to this effect. Signed-off-by: Eric Biggers <ebiggers@google.com> Acked-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/blake2s.h')
-rw-r--r--include/crypto/blake2s.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/crypto/blake2s.h b/include/crypto/blake2s.h
index 734ed22b7a6a..f1c8330a61a9 100644
--- a/include/crypto/blake2s.h
+++ b/include/crypto/blake2s.h
@@ -24,6 +24,7 @@ enum blake2s_lengths {
};
struct blake2s_state {
+ /* 'h', 't', and 'f' are used in assembly code, so keep them as-is. */
u32 h[8];
u32 t[2];
u32 f[2];