2022-01-12 23:16:27

by Justin Forbes

[permalink] [raw]
Subject: Re: [PATCH] lib/crypto: add prompts back to crypto libraries

On Tue, Jan 11, 2022 at 4:41 PM Ard Biesheuvel <[email protected]> wrote:
>
> On Tue, 11 Jan 2022 at 23:27, Jason A. Donenfeld <[email protected]> wrote:
> >
> > On Tue, Jan 11, 2022 at 11:25 PM Ard Biesheuvel <[email protected]> wrote:
> > >
> > > On Tue, 11 Jan 2022 at 23:12, Jason A. Donenfeld <[email protected]> wrote:
> > > >
> > > > Hi Justin,
> > > >
> > > > These are library variables, which means they really have no sense in
> > > > being user selectable. Internal things to the kernel depend on them,
> > > > or they don't. They're always only dependencies.
> > > >
> > >
> > > But what does any of this have to do with blake2s? These are unrelated
> > > changes that are not even described in the commit log of the original
> > > patch, so let's just revert them now. If changes are needed here, we
> > > can discuss them on the linux-crypto mailing list after the merge
> > > window.
> >
> > The lib crypto stuff moved outside of `if CRYPTO`, so if you add those
> > titles back, the root menu is going to be filled with things. I'm
> > working on some patches now moving lib/crypto/ things into lib
> > strictly, so the dependency is one way. I can try adding back the
> > labels there if you want.
> >
>
> Ah, right. In that case, can we fold in something like the below?
>
> diff --git a/lib/crypto/Kconfig b/lib/crypto/Kconfig
> index a3e41b7a8054..179041b60294 100644
> --- a/lib/crypto/Kconfig
> +++ b/lib/crypto/Kconfig
> @@ -1,5 +1,7 @@
> # SPDX-License-Identifier: GPL-2.0
>
> +menu "Crypto library routines"
> +
> config CRYPTO_LIB_AES
> tristate
>
> @@ -120,3 +122,5 @@ config CRYPTO_LIB_SHA256
>
> config CRYPTO_LIB_SM4
> tristate
> +
> +endmenu

That works, I will send a V2 with the menu.

Justin


2022-01-12 23:16:29

by Jason A. Donenfeld

[permalink] [raw]
Subject: Re: [PATCH] lib/crypto: add prompts back to crypto libraries

I think I've actually got a patch for the root problem here. Testing
now and it should be out shortly.

2022-01-12 23:18:13

by Jason A. Donenfeld

[permalink] [raw]
Subject: Re: [PATCH] lib/crypto: add prompts back to crypto libraries

On Wed, Jan 12, 2022 at 2:59 PM Jason A. Donenfeld <[email protected]> wrote:
>
> I think I've actually got a patch for the root problem here. Testing
> now and it should be out shortly.

Actually, scratch that, it's a lot harder than I anticipated. I just
saw your v2. Let's roll with that. Sent you a note there for a v3.

Jason