summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-12-23 00:09:56 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2021-01-03 08:41:38 +1100
commit7d87131fadd53a0401b5c078dd64e58c3ea6994c (patch)
treeb1ecba0dbfe8253df79020f1bb2e43b39ef3d333 /include/crypto
parent42ad8cf821f0d8564c393e9ad7d00a1a271d18ae (diff)
downloadlinux-stable-7d87131fadd53a0401b5c078dd64e58c3ea6994c.tar.gz
linux-stable-7d87131fadd53a0401b5c078dd64e58c3ea6994c.tar.bz2
linux-stable-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')
-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];