android_kernel_motorola_sm6375/include/crypto
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jason A. Donenfeld c4f4837440 lib/crypto: blake2s: move hmac construction into wireguard
commit d8d83d8ab0a453e17e68b3a3bed1f940c34b8646 upstream.

Basically nobody should use blake2s in an HMAC construction; it already
has a keyed variant. But unfortunately for historical reasons, Noise,
used by WireGuard, uses HKDF quite strictly, which means we have to use
this. Because this really shouldn't be used by others, this commit moves
it into wireguard's noise.c locally, so that kernels that aren't using
WireGuard don't get this superfluous code baked in. On m68k systems,
this shaves off ~314 bytes.

Cc: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
[Jason: for stable, skip the wireguard changes, since this kernel
 doesn't have wireguard.]
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-22 14:11:02 +02:00
..
internal crypto: blake2s - generic C library implementation and selftest 2022-06-22 14:11:02 +02:00
acompress.h crypto: api - check for ERR pointers in crypto_destroy_tfm() 2021-05-11 14:04:05 +02:00
aead.h crypto: api - check for ERR pointers in crypto_destroy_tfm() 2021-05-11 14:04:05 +02:00
aes.h
akcipher.h crypto: api - check for ERR pointers in crypto_destroy_tfm() 2021-05-11 14:04:05 +02:00
algapi.h
arc4.h
asym_tpm_subtype.h
authenc.h
b128ops.h
blake2s.h lib/crypto: blake2s: move hmac construction into wireguard 2022-06-22 14:11:02 +02:00
blowfish.h
cast5.h
cast6.h crypto: x86 - Regularize glue function prototypes 2021-03-20 10:39:47 +01:00
cast_common.h
cbc.h
chacha.h
cryptd.h
ctr.h
des.h
dh.h
drbg.h
ecdh.h
engine.h
gcm.h
gf128mul.h
ghash.h
hash.h crypto: api - check for ERR pointers in crypto_destroy_tfm() 2021-05-11 14:04:05 +02:00
hash_info.h
hmac.h
if_alg.h
kpp.h crypto: api - check for ERR pointers in crypto_destroy_tfm() 2021-05-11 14:04:05 +02:00
md5.h
nhpoly1305.h
null.h
padlock.h
pcrypt.h
pkcs7.h
poly1305.h
public_key.h crypto: public_key: fix overflow during implicit conversion 2021-09-22 12:26:21 +02:00
rng.h crypto: api - check for ERR pointers in crypto_destroy_tfm() 2021-05-11 14:04:05 +02:00
scatterwalk.h
serpent.h crypto: x86 - Regularize glue function prototypes 2021-03-20 10:39:47 +01:00
sha.h
sha1_base.h
sha3.h
sha256_base.h
sha512_base.h
skcipher.h crypto: api - check for ERR pointers in crypto_destroy_tfm() 2021-05-11 14:04:05 +02:00
sm3.h
sm3_base.h
sm4.h
streebog.h
twofish.h
xts.h crypto: x86 - Regularize glue function prototypes 2021-03-20 10:39:47 +01:00