]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lib/crypto: poly1305: Add at_least decoration to fixed-size array params
authorEric Biggers <ebiggers@kernel.org>
Sat, 22 Nov 2025 19:42:04 +0000 (11:42 -0800)
committerEric Biggers <ebiggers@kernel.org>
Sun, 23 Nov 2025 20:19:47 +0000 (12:19 -0800)
commitc2099fa61664e8fe8844cccdb7d1d18a5f0f94d1
tree9c01024f2cd74559b68d672ed0e3f437c0af7724
parent580f1d31dff62b0f0034304bd75f169b8fec6f36
lib/crypto: poly1305: Add at_least decoration to fixed-size array params

Add the at_least (i.e. 'static') decoration to the fixed-size array
parameters of the poly1305 library functions.  This causes clang to warn
when a too-small array of known size is passed.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: "Jason A. Donenfeld" <Jason@zx2c4.com>
Link: https://lore.kernel.org/r/20251122194206.31822-5-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
include/crypto/poly1305.h