WSL2-Linux-Kernel/lib/crypto
Jason A. Donenfeld d8d83d8ab0 lib/crypto: blake2s: move hmac construction into wireguard
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>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-01-18 13:03:55 +01:00
..
Kconfig lib/crypto: add prompts back to crypto libraries 2022-01-18 13:03:55 +01:00
Makefile lib/crypto: blake2s: include as built-in 2022-01-07 00:25:25 +01:00
aes.c
arc4.c
blake2s-generic.c lib/crypto: blake2s: include as built-in 2022-01-07 00:25:25 +01:00
blake2s-selftest.c lib/crypto: blake2s: move hmac construction into wireguard 2022-01-18 13:03:55 +01:00
blake2s.c lib/crypto: blake2s: move hmac construction into wireguard 2022-01-18 13:03:55 +01:00
chacha.c
chacha20poly1305-selftest.c
chacha20poly1305.c crypto: lib - rename 'mod_init' & 'mod_exit' functions to be module-specific 2021-07-16 15:49:36 +08:00
curve25519-fiat32.c
curve25519-generic.c
curve25519-hacl64.c
curve25519-selftest.c
curve25519.c crypto: lib - rename 'mod_init' & 'mod_exit' functions to be module-specific 2021-07-16 15:49:36 +08:00
des.c
libchacha.c
poly1305-donna32.c
poly1305-donna64.c
poly1305.c
sha256.c
sm4.c crypto: sm4 - Do not change section of ck and sbox 2021-09-17 11:05:10 +08:00