linux/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
aes.c
aescfb.c crypto: lib - implement library version of AES in CFB mode 2024-05-09 22:30:51 +03:00
aesgcm.c crypto: lib/aesgcm - Add kernel docs for aesgcm_mac 2023-11-17 19:16:28 +08:00
arc4.c
blake2s-generic.c crypto: blake2s: remove module-related code 2023-04-13 13:13:51 -07:00
blake2s-selftest.c crypto: lib/blake2s - Split up test function to halve stack usage 2022-12-30 22:56:27 +08:00
blake2s.c crypto: remove MODULE_LICENSE in non-modules 2023-04-13 13:13:51 -07:00
chacha.c
chacha20poly1305-selftest.c
chacha20poly1305.c
curve25519-fiat32.c
curve25519-generic.c
curve25519-hacl64.c types: Introduce [us]128 2023-06-05 09:36:35 +02:00
curve25519-selftest.c
curve25519.c
des.c
gf128mul.c crypto: lib/gf128mul - make gf128mul_lle time invariant 2022-11-11 18:14:59 +08:00
Kconfig crypto: lib - implement library version of AES in CFB mode 2024-05-09 22:30:51 +03:00
libchacha.c
Makefile crypto: lib - implement library version of AES in CFB mode 2024-05-09 22:30:51 +03:00
memneq.c
poly1305-donna32.c
poly1305-donna64.c types: Introduce [us]128 2023-06-05 09:36:35 +02:00
poly1305.c
sha1.c
sha256.c crypto: lib/sha256 - Use generic code from sha256_base 2023-05-19 16:45:43 +08:00
utils.c crypto: lib/utils - Move utilities into new header 2023-03-31 17:50:09 +08:00