mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pengpeng Hou <hppiscas@163.com>
To: herbert@gondor.apana.org.au
Cc: davem@davemloft.net, linux-crypto@vger.kernel.org,
	ebiggers@kernel.org, linux-kernel@vger.kernel.org,
	hppiscas@163.com
Subject: [PATCH] crypto: aegis128 - select the skcipher API
Date: Mon, 30 Nov 2026 20:36:11 +0800	[thread overview]
Message-ID: <20261130123611.72886-1-hppiscas@163.com> (raw)

The generic AEGIS-128 implementation uses
skcipher_walk_aead_encrypt(), skcipher_walk_aead_decrypt() and
skcipher_walk_done(), but CRYPTO_AEGIS128 does not select their
provider.

The AEAD dependency previously selected CRYPTO_NULL2, which in turn
selected CRYPTO_SKCIPHER2. Splitting geniv into its own Kconfig
option removed that indirect dependency. AEGIS-128 can now be
enabled without the skcipher implementation at the linkage level it
needs and fail to link.

Select CRYPTO_SKCIPHER to provide the walk helpers at the required
linkage level.

The issue was found by our static-analysis tool and manually reviewed.

Fixes: ba51738fa789 ("crypto: geniv - Split geniv out of AEAD Kconfig option")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
AI assistance: gpt 5 (patch preparation and review).

 crypto/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/crypto/Kconfig b/crypto/Kconfig
index 981d5dc..b246e01 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -747,6 +747,7 @@ config CRYPTO_AEGIS128
 	tristate "AEGIS-128"
 	select CRYPTO_AEAD
 	select CRYPTO_LIB_AES  # for AES S-box tables
+	select CRYPTO_SKCIPHER
 	help
 	  AEGIS-128 AEAD algorithm
 

base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244


                 reply	other threads:[~2026-11-30 12:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130123611.72886-1-hppiscas@163.com \
    --to=hppiscas@163.com \
    --cc=davem@davemloft.net \
    --cc=ebiggers@kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®