android_kernel_motorola_sm6375/include/crypto
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Arnd Bergmann 0369ef0a00
UPSTREAM: crypto: poly1305 - fix poly1305_core_setkey() declaration
gcc-11 points out a mismatch between the declaration and the definition
of poly1305_core_setkey():

lib/crypto/poly1305-donna32.c:13:67: error: argument 2 of type ‘const u8[16]’ {aka ‘const unsigned char[16]’} with mismatched bound [-Werror=array-parameter=]
   13 | void poly1305_core_setkey(struct poly1305_core_key *key, const u8 raw_key[16])
      |                                                          ~~~~~~~~~^~~~~~~~~~~
In file included from lib/crypto/poly1305-donna32.c:11:
include/crypto/internal/poly1305.h:21:68: note: previously declared as ‘const u8 *’ {aka ‘const unsigned char *’}
   21 | void poly1305_core_setkey(struct poly1305_core_key *key, const u8 *raw_key);

This is harmless in principle, as the calling conventions are the same,
but the more specific prototype allows better type checking in the
caller.

Change the declaration to match the actual function definition.
The poly1305_simd_init() is a bit suspicious here, as it previously
had a 32-byte argument type, but looks like it needs to take the
16-byte POLY1305_BLOCK_SIZE array instead.

Fixes: 1c08a104360f ("crypto: poly1305 - add new 32 and 64-bit generic versions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 8d195e7a8ada68928f2aedb2c18302a4518fe68e)
Bug: 187129171
Signed-off-by: Connor O'Brien <connoro@google.com>
Change-Id: I72d0d5ed55f41ca53dbf16a3cad83a9216e85fdf
2025-09-24 12:16:39 +02:00
..
internal UPSTREAM: crypto: poly1305 - fix poly1305_core_setkey() declaration 2025-09-24 12:16:39 +02:00
acompress.h
aead.h
aes.h
akcipher.h
algapi.h
arc4.h
asym_tpm_subtype.h
authenc.h
b128ops.h
blake2b.h BACKPORT: crypto: blake2b - sync with blake2s implementation 2021-10-23 19:32:26 -07:00
blake2s.h This is the 5.4.200 stable release 2022-06-23 15:04:40 +02:00
blowfish.h
cast5.h
cast6.h
cast_common.h
cbc.h
chacha.h UPSTREAM: crypto: x86/chacha-sse3 - use unaligned loads for state array 2025-09-24 12:16:33 +02:00
chacha20poly1305.h UPSTREAM: crypto: lib/chacha20poly1305 - Add missing function declaration 2025-09-24 12:16:33 +02:00
cryptd.h
ctr.h
curve25519.h UPSTREAM: crypto: x86/curve25519 - support assemblers with no adx support 2025-09-24 12:16:33 +02:00
des.h
dh.h
drbg.h crypto: drbg - make reseeding from get_random_bytes() synchronous 2022-06-22 14:11:18 +02:00
ecdh.h
engine.h
gcm.h
gf128mul.h
ghash.h
hash.h
hash_info.h
hmac.h
ice.h
if_alg.h crypto: af_alg - Disallow multiple in-flight AIO requests 2024-01-25 14:34:23 -08:00
kpp.h
md5.h
nhpoly1305.h UPSTREAM: crypto: poly1305 - add new 32 and 64-bit generic versions 2025-09-24 12:16:32 +02:00
null.h
padlock.h
pcrypt.h
pkcs7.h
poly1305.h UPSTREAM: crypto: poly1305 - fix poly1305_core_setkey() declaration 2025-09-24 12:16:39 +02:00
public_key.h
rng.h
scatterwalk.h
serpent.h
sha.h crypto: lib/sha256 - add sha256() function 2025-09-24 12:16:37 +02:00
sha1_base.h
sha3.h
sha256_base.h crypto: lib/sha256 - return void 2025-09-24 12:16:37 +02:00
sha512_base.h
skcipher.h
sm3.h
sm3_base.h
sm4.h
streebog.h
twofish.h
xts.h