* [PATCH] arm64/crypto: Select AEAD2 for GHASH_ARM64_CE
@ 2022-06-22 14:25 ` Qian Cai
0 siblings, 0 replies; 8+ messages in thread
From: Qian Cai @ 2022-06-22 14:25 UTC (permalink / raw)
To: Herbert Xu, David S. Miller
Cc: Ard Biesheuvel, Catalin Marinas, Will Deacon, linux-crypto,
linux-arm-kernel, linux-kernel, Qian Cai
Otherwise, we could fail to compile.
ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_exit':
ghash-ce-glue.c:(.exit.text+0x24): undefined reference to 'crypto_unregister_aead'
ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_init':
ghash-ce-glue.c:(.init.text+0x34): undefined reference to 'crypto_register_aead'
Fixes: 37b6aab68fae ("crypto: arm64/ghash - drop PMULL based shash")
Signed-off-by: Qian Cai <quic_qiancai@quicinc.com>
---
arch/arm64/crypto/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/crypto/Kconfig b/arch/arm64/crypto/Kconfig
index 4391a463abd7..6b2ecc193bc0 100644
--- a/arch/arm64/crypto/Kconfig
+++ b/arch/arm64/crypto/Kconfig
@@ -71,6 +71,7 @@ config CRYPTO_GHASH_ARM64_CE
select CRYPTO_HASH
select CRYPTO_GF128MUL
select CRYPTO_LIB_AES
+ select CRYPTO_AEAD2
config CRYPTO_POLYVAL_ARM64_CE
tristate "POLYVAL using ARMv8 Crypto Extensions (for HCTR2)"
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] arm64/crypto: Select AEAD2 for GHASH_ARM64_CE
@ 2022-06-22 14:25 ` Qian Cai
0 siblings, 0 replies; 8+ messages in thread
From: Qian Cai @ 2022-06-22 14:25 UTC (permalink / raw)
To: Herbert Xu, David S. Miller
Cc: Ard Biesheuvel, Catalin Marinas, Will Deacon, linux-crypto,
linux-arm-kernel, linux-kernel, Qian Cai
Otherwise, we could fail to compile.
ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_exit':
ghash-ce-glue.c:(.exit.text+0x24): undefined reference to 'crypto_unregister_aead'
ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_init':
ghash-ce-glue.c:(.init.text+0x34): undefined reference to 'crypto_register_aead'
Fixes: 37b6aab68fae ("crypto: arm64/ghash - drop PMULL based shash")
Signed-off-by: Qian Cai <quic_qiancai@quicinc.com>
---
arch/arm64/crypto/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/crypto/Kconfig b/arch/arm64/crypto/Kconfig
index 4391a463abd7..6b2ecc193bc0 100644
--- a/arch/arm64/crypto/Kconfig
+++ b/arch/arm64/crypto/Kconfig
@@ -71,6 +71,7 @@ config CRYPTO_GHASH_ARM64_CE
select CRYPTO_HASH
select CRYPTO_GF128MUL
select CRYPTO_LIB_AES
+ select CRYPTO_AEAD2
config CRYPTO_POLYVAL_ARM64_CE
tristate "POLYVAL using ARMv8 Crypto Extensions (for HCTR2)"
--
2.34.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] arm64/crypto: Select AEAD2 for GHASH_ARM64_CE
2022-06-22 14:25 ` Qian Cai
@ 2022-06-23 17:17 ` Eric Biggers
-1 siblings, 0 replies; 8+ messages in thread
From: Eric Biggers @ 2022-06-23 17:17 UTC (permalink / raw)
To: Qian Cai
Cc: Herbert Xu, David S. Miller, Ard Biesheuvel, Catalin Marinas,
Will Deacon, linux-crypto, linux-arm-kernel, linux-kernel
On Wed, Jun 22, 2022 at 10:25:57AM -0400, Qian Cai wrote:
> Otherwise, we could fail to compile.
>
> ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_exit':
> ghash-ce-glue.c:(.exit.text+0x24): undefined reference to 'crypto_unregister_aead'
> ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_init':
> ghash-ce-glue.c:(.init.text+0x34): undefined reference to 'crypto_register_aead'
>
> Fixes: 37b6aab68fae ("crypto: arm64/ghash - drop PMULL based shash")
I don't see how the Fixes commit is related. Hasn't this been a problem since
commit 537c1445ab0b, which added an AEAD algorithm to this module?
> diff --git a/arch/arm64/crypto/Kconfig b/arch/arm64/crypto/Kconfig
> index 4391a463abd7..6b2ecc193bc0 100644
> --- a/arch/arm64/crypto/Kconfig
> +++ b/arch/arm64/crypto/Kconfig
> @@ -71,6 +71,7 @@ config CRYPTO_GHASH_ARM64_CE
> select CRYPTO_HASH
> select CRYPTO_GF128MUL
> select CRYPTO_LIB_AES
> + select CRYPTO_AEAD2
I don't think CRYPTO_AEAD2 is meant to be selected directly. It should be
CRYPTO_AEAD instead.
- Eric
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] arm64/crypto: Select AEAD2 for GHASH_ARM64_CE
@ 2022-06-23 17:17 ` Eric Biggers
0 siblings, 0 replies; 8+ messages in thread
From: Eric Biggers @ 2022-06-23 17:17 UTC (permalink / raw)
To: Qian Cai
Cc: Herbert Xu, David S. Miller, Ard Biesheuvel, Catalin Marinas,
Will Deacon, linux-crypto, linux-arm-kernel, linux-kernel
On Wed, Jun 22, 2022 at 10:25:57AM -0400, Qian Cai wrote:
> Otherwise, we could fail to compile.
>
> ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_exit':
> ghash-ce-glue.c:(.exit.text+0x24): undefined reference to 'crypto_unregister_aead'
> ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_init':
> ghash-ce-glue.c:(.init.text+0x34): undefined reference to 'crypto_register_aead'
>
> Fixes: 37b6aab68fae ("crypto: arm64/ghash - drop PMULL based shash")
I don't see how the Fixes commit is related. Hasn't this been a problem since
commit 537c1445ab0b, which added an AEAD algorithm to this module?
> diff --git a/arch/arm64/crypto/Kconfig b/arch/arm64/crypto/Kconfig
> index 4391a463abd7..6b2ecc193bc0 100644
> --- a/arch/arm64/crypto/Kconfig
> +++ b/arch/arm64/crypto/Kconfig
> @@ -71,6 +71,7 @@ config CRYPTO_GHASH_ARM64_CE
> select CRYPTO_HASH
> select CRYPTO_GF128MUL
> select CRYPTO_LIB_AES
> + select CRYPTO_AEAD2
I don't think CRYPTO_AEAD2 is meant to be selected directly. It should be
CRYPTO_AEAD instead.
- Eric
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] arm64/crypto: Select AEAD2 for GHASH_ARM64_CE
2022-06-23 17:17 ` Eric Biggers
@ 2022-06-23 19:08 ` Qian Cai
-1 siblings, 0 replies; 8+ messages in thread
From: Qian Cai @ 2022-06-23 19:08 UTC (permalink / raw)
To: Eric Biggers
Cc: Herbert Xu, David S. Miller, Ard Biesheuvel, Catalin Marinas,
Will Deacon, linux-crypto, linux-arm-kernel, linux-kernel
On Thu, Jun 23, 2022 at 10:17:19AM -0700, Eric Biggers wrote:
> On Wed, Jun 22, 2022 at 10:25:57AM -0400, Qian Cai wrote:
> > Otherwise, we could fail to compile.
> >
> > ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_exit':
> > ghash-ce-glue.c:(.exit.text+0x24): undefined reference to 'crypto_unregister_aead'
> > ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_init':
> > ghash-ce-glue.c:(.init.text+0x34): undefined reference to 'crypto_register_aead'
> >
> > Fixes: 37b6aab68fae ("crypto: arm64/ghash - drop PMULL based shash")
>
> I don't see how the Fixes commit is related. Hasn't this been a problem since
> commit 537c1445ab0b, which added an AEAD algorithm to this module?
Ah, you are probably right. crypto_unregister_aead and crypto_register_aead
are already there in the previous commit.
>
> > diff --git a/arch/arm64/crypto/Kconfig b/arch/arm64/crypto/Kconfig
> > index 4391a463abd7..6b2ecc193bc0 100644
> > --- a/arch/arm64/crypto/Kconfig
> > +++ b/arch/arm64/crypto/Kconfig
> > @@ -71,6 +71,7 @@ config CRYPTO_GHASH_ARM64_CE
> > select CRYPTO_HASH
> > select CRYPTO_GF128MUL
> > select CRYPTO_LIB_AES
> > + select CRYPTO_AEAD2
>
> I don't think CRYPTO_AEAD2 is meant to be selected directly. It should be
> CRYPTO_AEAD instead.
I am not sure about that. I chose CRYPTO_AEAD2 because that is in the
Makefile.
obj-$(CONFIG_CRYPTO_AEAD2) += aead.o
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] arm64/crypto: Select AEAD2 for GHASH_ARM64_CE
@ 2022-06-23 19:08 ` Qian Cai
0 siblings, 0 replies; 8+ messages in thread
From: Qian Cai @ 2022-06-23 19:08 UTC (permalink / raw)
To: Eric Biggers
Cc: Herbert Xu, David S. Miller, Ard Biesheuvel, Catalin Marinas,
Will Deacon, linux-crypto, linux-arm-kernel, linux-kernel
On Thu, Jun 23, 2022 at 10:17:19AM -0700, Eric Biggers wrote:
> On Wed, Jun 22, 2022 at 10:25:57AM -0400, Qian Cai wrote:
> > Otherwise, we could fail to compile.
> >
> > ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_exit':
> > ghash-ce-glue.c:(.exit.text+0x24): undefined reference to 'crypto_unregister_aead'
> > ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_init':
> > ghash-ce-glue.c:(.init.text+0x34): undefined reference to 'crypto_register_aead'
> >
> > Fixes: 37b6aab68fae ("crypto: arm64/ghash - drop PMULL based shash")
>
> I don't see how the Fixes commit is related. Hasn't this been a problem since
> commit 537c1445ab0b, which added an AEAD algorithm to this module?
Ah, you are probably right. crypto_unregister_aead and crypto_register_aead
are already there in the previous commit.
>
> > diff --git a/arch/arm64/crypto/Kconfig b/arch/arm64/crypto/Kconfig
> > index 4391a463abd7..6b2ecc193bc0 100644
> > --- a/arch/arm64/crypto/Kconfig
> > +++ b/arch/arm64/crypto/Kconfig
> > @@ -71,6 +71,7 @@ config CRYPTO_GHASH_ARM64_CE
> > select CRYPTO_HASH
> > select CRYPTO_GF128MUL
> > select CRYPTO_LIB_AES
> > + select CRYPTO_AEAD2
>
> I don't think CRYPTO_AEAD2 is meant to be selected directly. It should be
> CRYPTO_AEAD instead.
I am not sure about that. I chose CRYPTO_AEAD2 because that is in the
Makefile.
obj-$(CONFIG_CRYPTO_AEAD2) += aead.o
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] arm64/crypto: Select AEAD2 for GHASH_ARM64_CE
2022-06-23 19:08 ` Qian Cai
@ 2022-06-24 7:59 ` Herbert Xu
-1 siblings, 0 replies; 8+ messages in thread
From: Herbert Xu @ 2022-06-24 7:59 UTC (permalink / raw)
To: Qian Cai
Cc: Eric Biggers, David S. Miller, Ard Biesheuvel, Catalin Marinas,
Will Deacon, linux-crypto, linux-arm-kernel, linux-kernel
On Thu, Jun 23, 2022 at 03:08:32PM -0400, Qian Cai wrote:
>
> I am not sure about that. I chose CRYPTO_AEAD2 because that is in the
> Makefile.
>
> obj-$(CONFIG_CRYPTO_AEAD2) += aead.o
As Eric said, AEAD2 is for internal use only and the correct option
for general use is CONFIG_CRYPTO_AEAD.
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] arm64/crypto: Select AEAD2 for GHASH_ARM64_CE
@ 2022-06-24 7:59 ` Herbert Xu
0 siblings, 0 replies; 8+ messages in thread
From: Herbert Xu @ 2022-06-24 7:59 UTC (permalink / raw)
To: Qian Cai
Cc: Eric Biggers, David S. Miller, Ard Biesheuvel, Catalin Marinas,
Will Deacon, linux-crypto, linux-arm-kernel, linux-kernel
On Thu, Jun 23, 2022 at 03:08:32PM -0400, Qian Cai wrote:
>
> I am not sure about that. I chose CRYPTO_AEAD2 because that is in the
> Makefile.
>
> obj-$(CONFIG_CRYPTO_AEAD2) += aead.o
As Eric said, AEAD2 is for internal use only and the correct option
for general use is CONFIG_CRYPTO_AEAD.
Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-06-24 8:01 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-22 14:25 [PATCH] arm64/crypto: Select AEAD2 for GHASH_ARM64_CE Qian Cai
2022-06-22 14:25 ` Qian Cai
2022-06-23 17:17 ` Eric Biggers
2022-06-23 17:17 ` Eric Biggers
2022-06-23 19:08 ` Qian Cai
2022-06-23 19:08 ` Qian Cai
2022-06-24 7:59 ` Herbert Xu
2022-06-24 7:59 ` Herbert Xu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.