crypto: inside-secure - Replace generic aes with libaes
authorPeter Harliman Liem <pliem@maxlinear.com>
Tue, 13 Sep 2022 08:03:48 +0000 (16:03 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 24 Sep 2022 08:14:43 +0000 (16:14 +0800)
commit320406cb60b6408d87f6a5bc729285fc44107352
treed69e745c0887151fa1451fba26dfe36aee1ae6c7
parent49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1
crypto: inside-secure - Replace generic aes with libaes

Commit 363a90c2d517 ("crypto: safexcel/aes - switch to
library version of key expansion routine") removed
CRYPTO_AES in the config. However, some portions of codes
still rely on generic AES cipher (e.g. refer to
safexcel_aead_gcm_cra_init(), safexcel_xcbcmac_cra_init()).
This causes transform allocation failure for those algos,
if CRYPTO_AES is not manually enabled.

To resolve that, we replace all existing AES cipher
dependent codes with their AES library counterpart.

Fixes: 363a90c2d517 ("crypto: safexcel/aes - switch to library version of key expansion routine")
Signed-off-by: Peter Harliman Liem <pliem@maxlinear.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_cipher.c
drivers/crypto/inside-secure/safexcel_hash.c