[PATCH] crypto: x86/aegis128 - select the skcipher API
From: Pengpeng Hou
Date: Mon Nov 30 2026 - 07:33:28 EST
The AES-NI AEGIS-128 implementation calls the skcipher_walk_aead_*()
helpers and skcipher_walk_done(). Selecting CRYPTO_AEAD does not
ensure that the skcipher implementation is built at the linkage
level required by the AEGIS driver.
Select CRYPTO_SKCIPHER so built-in AES-NI AEGIS-128 does not
reference a modular skcipher implementation.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: 3a7dfdbbe333 ("crypto: x86/aegis - stop using the SIMD helper")
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
AI assistance: gpt 5 (patch preparation and review).
arch/x86/crypto/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/crypto/Kconfig b/arch/x86/crypto/Kconfig
index 20f5e2a..39384fa 100644
--- a/arch/x86/crypto/Kconfig
+++ b/arch/x86/crypto/Kconfig
@@ -318,6 +318,7 @@ config CRYPTO_AEGIS128_AESNI_SSE2
tristate "AEAD ciphers: AEGIS-128 (AES-NI/SSE4.1)"
depends on 64BIT
select CRYPTO_AEAD
+ select CRYPTO_SKCIPHER
help
AEGIS-128 AEAD algorithm
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244