Skip to content

Commit

Permalink
crypto: blake2s - add comment for blake2s_state fields
Browse files Browse the repository at this point in the history
commit 7d87131 upstream.

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>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
ebiggers authored and gregkh committed May 30, 2022
1 parent d45ae76 commit fea91e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/crypto/blake2s.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit fea91e9

Please sign in to comment.