crypto: blake2s - add comment for blake2s_state fields
authorEric Biggers <ebiggers@google.com>
Wed, 23 Dec 2020 08:09:56 +0000 (00:09 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 2 Jan 2021 21:41:38 +0000 (08:41 +1100)
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>
include/crypto/blake2s.h

index 734ed22b7a6aa5e8474b0f1403f43254d10282a7..f1c8330a61a91b63f2ac252d4e6fd1c698ea56f9 100644 (file)
@@ -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];