linux/arch/x86/lib/crypto
Eric Biggers bdc2a55687 crypto: lib/chacha - add array bounds to function prototypes
Add explicit array bounds to the function prototypes for the parameters
that didn't already get handled by the conversion to use chacha_state:

- chacha_block_*():
  Change 'u8 *out' or 'u8 *stream' to u8 out[CHACHA_BLOCK_SIZE].

- hchacha_block_*():
  Change 'u32 *out' or 'u32 *stream' to u32 out[HCHACHA_OUT_WORDS].

- chacha_init():
  Change 'const u32 *key' to 'const u32 key[CHACHA_KEY_WORDS]'.
  Change 'const u8 *iv' to 'const u8 iv[CHACHA_IV_SIZE]'.

No functional changes.  This just makes it clear when fixed-size arrays
are expected.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2025-05-12 13:32:53 +08:00
..
.gitignore
blake2s-core.S
blake2s-glue.c crypto: x86/blake2s - Include linux/init.h 2025-05-05 18:20:44 +08:00
chacha-avx2-x86_64.S
chacha-avx512vl-x86_64.S
chacha-ssse3-x86_64.S
chacha_glue.c crypto: lib/chacha - add array bounds to function prototypes 2025-05-12 13:32:53 +08:00
Kconfig crypto: x86/sha256 - Add simd block function 2025-05-05 18:20:45 +08:00
Makefile crypto: x86/sha256 - implement library instead of shash 2025-05-05 18:20:44 +08:00
poly1305-x86_64-cryptogams.pl crypto: x86/poly1305 - Add block-only interface 2025-05-05 13:32:56 +08:00
poly1305_glue.c Revert "crypto: run initcalls for generic implementations earlier" 2025-05-05 18:20:44 +08:00
sha256-avx-asm.S crypto: x86/sha256 - implement library instead of shash 2025-05-05 18:20:44 +08:00
sha256-avx2-asm.S crypto: x86/sha256 - implement library instead of shash 2025-05-05 18:20:44 +08:00
sha256-ni-asm.S crypto: x86/sha256 - implement library instead of shash 2025-05-05 18:20:44 +08:00
sha256-ssse3-asm.S crypto: x86/sha256 - implement library instead of shash 2025-05-05 18:20:44 +08:00
sha256.c crypto: x86/sha256 - Add simd block function 2025-05-05 18:20:45 +08:00