original_kernel/lib/crypto
Ard Biesheuvel f135440447 crypto: lib - implement library version of AES in CFB mode
Implement AES in CFB mode using the existing, mostly constant-time
generic AES library implementation. This will be used by the TPM code
to encrypt communications with TPM hardware, which is often a discrete
component connected using sniffable wires or traces.

While a CFB template does exist, using a skcipher is a major pain for
non-performance critical synchronous crypto where the algorithm is known
at compile time and the data is in contiguous buffers with valid kernel
virtual addresses.

Tested-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Reviewed-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lore.kernel.org/all/20230216201410.15010-1-James.Bottomley@HansenPartnership.com/
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Tested-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
2024-05-09 22:30:51 +03:00
..
mpi crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init 2023-12-22 12:30:19 +08:00
Kconfig crypto: lib - implement library version of AES in CFB mode 2024-05-09 22:30:51 +03:00
Makefile crypto: lib - implement library version of AES in CFB mode 2024-05-09 22:30:51 +03:00
aes.c
aescfb.c crypto: lib - implement library version of AES in CFB mode 2024-05-09 22:30:51 +03:00
aesgcm.c
arc4.c
blake2s-generic.c
blake2s-selftest.c
blake2s.c
chacha.c
chacha20poly1305-selftest.c
chacha20poly1305.c
curve25519-fiat32.c
curve25519-generic.c
curve25519-hacl64.c
curve25519-selftest.c
curve25519.c
des.c
gf128mul.c
libchacha.c
memneq.c
poly1305-donna32.c
poly1305-donna64.c
poly1305.c
sha1.c
sha256.c
utils.c