[PATCH 02/36] lib/crypto: aes: Introduce improved AES library
Qingfang Deng
dqfext at gmail.com
Mon Jan 5 18:47:12 AEDT 2026
On 4 Jan 2026 21:12:35 -0800, Eric Biggers wrote:
> extern const u8 crypto_aes_sbox[];
> extern const u8 crypto_aes_inv_sbox[];
> +extern const u32 __cacheline_aligned aes_enc_tab[256];
> +extern const u32 __cacheline_aligned aes_dec_tab[256];
__cacheline_aligned puts the array in ".data..cacheline_aligned"
section. As a const array, it should be in ".rodata" section, so
____cacheline_aligned (note the extra underscores) should be used
instead.
You can also apply the same to crypto_aes_sbox and crypto_aes_inv_sbox
while at it.
Regards,
Qingfang
More information about the Linuxppc-dev
mailing list