2024-01-16 10:00:29

by Kshitiz Varshney

[permalink] [raw]
Subject: RE: [PATCH v1] imx_v6_v7_defconfig: Enable sm3, sm4, polyval, xctr cipher test support

Hi Herbert,

Gentle Reminder.
Please help to merge the patch.

Regards,
Kshitiz

> -----Original Message-----
> From: Kshitiz Varshney <[email protected]>
> Sent: Wednesday, December 20, 2023 5:09 PM
> To: Herbert Xu <[email protected]>; Shawn Guo
> <[email protected]>; Sascha Hauer <[email protected]>; Fabio
> Estevam <[email protected]>; dl-linux-imx <[email protected]>;
> Pengutronix Kernel Team <[email protected]>; Varun Sethi
> <[email protected]>; Gaurav Jain <[email protected]>; Pankaj Gupta
> <[email protected]>; Sahil Malhotra <[email protected]>;
> Vabhav Sharma <[email protected]>; Meenakshi Aggarwal
> <[email protected]>; Rahul Kumar Yadav
> <[email protected]>; Nikhil Singla <[email protected]>
> Cc: [email protected]; [email protected]; Kshitiz
> Varshney <[email protected]>
> Subject: [PATCH v1] imx_v6_v7_defconfig: Enable sm3, sm4, polyval, xctr
> cipher test support
>
> Enable config for sm3, sm4, polyval, xctr cipher test as built in module.
>
> Issue:-
> Multiple crypto tests like sm3, sm4 xctr and polyval failing.
>
> skcipher: failed to allocate transform for xctr(aes): -2
> alg: self-tests for xctr(aes) using xctr(aes) failed (rc=-2)
> alg: self-tests for sm3 using sm3 failed (rc=-2)
> tcrypt: failed to load transform for sm3: -2
> alg: hash: failed to allocate transform for polyval: -2
> alg: self-tests for polyval using polyval failed (rc=-2)
>
> Resolution:-
> Enabling CONFIG_CRYPTO_SM3_GENERIC,
> CONFIG_CRYPTO_SM4_GENERIC,
> CONFIG_CRYPTO_HCTR2, CONFIG_CRYPTO_ARIA as module enables
> support of
> sm3, sm4, aria, polyval & xctr.
>
> Signed-off-by: Kshitiz Varshney <[email protected]>
> ---
> arch/arm/configs/imx_v6_v7_defconfig | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/configs/imx_v6_v7_defconfig
> b/arch/arm/configs/imx_v6_v7_defconfig
> index 0a90583f9f01..627f57da9d5b 100644
> --- a/arch/arm/configs/imx_v6_v7_defconfig
> +++ b/arch/arm/configs/imx_v6_v7_defconfig
> @@ -484,3 +484,7 @@ CONFIG_DEBUG_FS=y
> # CONFIG_SLUB_DEBUG is not set
> # CONFIG_SCHED_DEBUG is not set
> # CONFIG_FTRACE is not set
> +CONFIG_CRYPTO_HCTR2=m
> +CONFIG_CRYPTO_SM3_GENERIC=m
> +CONFIG_CRYPTO_SM4_GENERIC=m
> +CONFIG_CRYPTO_ARIA=m
> --
> 2.25.1



2024-01-16 10:05:28

by Fabio Estevam

[permalink] [raw]
Subject: Re: [PATCH v1] imx_v6_v7_defconfig: Enable sm3, sm4, polyval, xctr cipher test support

On Tue, Jan 16, 2024 at 6:59 AM Kshitiz Varshney
<[email protected]> wrote:
>
> Hi Herbert,
>
> Gentle Reminder.
> Please help to merge the patch.

This patch goes to Shawn's tree, not Herbert's.

We are currently in the merge window, so this change will likely be
applied after 6.8-rc1 is out.