Re: [PATCH] [v2] crypto: lib/Kconfig: hide library options
From: Arnd Bergmann
Date: Mon Mar 17 2025 - 05:05:21 EST
On Mon, Mar 17, 2025, at 09:37, Herbert Xu wrote:
> On Mon, Mar 17, 2025 at 08:36:25AM +0000, David Howells wrote:
>> Arnd Bergmann <arnd@xxxxxxxxxx> wrote:
>>
>> > - depends on CRYPTO_LIB_CHACHA20POLY1305 = y
>> > + select CRYPTO_LIB_CHACHA20POLY1305
>>
>> Doesn't that allow CRYPTO_LIB_CHACHA20POLY1305=m?
>
> Not unless BIG_KEYS is tristate or under a tristate.
Right, or if it selects something that has a dependency.
Before commit 17ec3e71ba79 ("crypto: lib/Kconfig - Hide arch
options from user"), CRYPTO_LIB_CHACHA20POLY1305 had a
dependency on CONFIG_CRYPTO, so with CRYPTO=m, the 'select CRYPTO_LIB_CHACHA20POLY1305' in BIG_KEYS would result in
CRYPTO_LIB_CHACHA20POLY1305=m.
Arnd