Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: aegis - Switch from crypto_ft_tab[] to aes_enc_tab[]

Instead of crypto_ft_tab[0] from aes_generic.c, use aes_enc_tab from
lib/crypto/aes.c. These contain the same data, so the result is the
same. This will allow aes_generic.c to eventually be removed.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260112192035.10427-8-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>

+2 -2
+1 -1
crypto/Kconfig
··· 766 766 config CRYPTO_AEGIS128 767 767 tristate "AEGIS-128" 768 768 select CRYPTO_AEAD 769 - select CRYPTO_AES # for AES S-box tables 769 + select CRYPTO_LIB_AES # for AES S-box tables 770 770 help 771 771 AEGIS-128 AEAD algorithm 772 772
+1 -1
crypto/aegis.h
··· 62 62 const union aegis_block *key) 63 63 { 64 64 const u8 *s = src->bytes; 65 - const u32 *t = crypto_ft_tab[0]; 65 + const u32 *t = aes_enc_tab; 66 66 u32 d0, d1, d2, d3; 67 67 68 68 d0 = t[s[ 0]] ^ rol32(t[s[ 5]], 8) ^ rol32(t[s[10]], 16) ^ rol32(t[s[15]], 24);