[PATCH v3 3/6] lib: sm3: implement U-Boot parts

Quentin Schulz quentin.schulz at cherry.de
Tue Nov 18 11:30:18 CET 2025


Hi Heiko,

On 11/18/25 5:30 AM, Heiko Schocher wrote:
> add the U-Boot specific parts for the SM3 hash
> implementation:
> 
> Signed-off-by: Heiko Schocher <hs at nabladev.com>
> ---
> 
> Changes in v3:
> New in version 3 as Ilias recommended to split linux
> and U-boot changes.
> 
>   MAINTAINERS          |   1 +
>   boot/Kconfig         |   1 +
>   cmd/Kconfig          |  15 ++++++
>   cmd/Makefile         |   1 +
>   cmd/sm3sum.c         |  48 +++++++++++++++++

Please add some doc for the new command in doc/usage/cmd/.

[...]

> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index 5b9c13d85e7..8e3efff2bee 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -264,6 +264,21 @@ config CMD_SBI
>   	help
>   	  Display information about the SBI implementation.
>   
> +config CMD_SM3SUM
> +	bool "sm3sum"
> +	select SM3
> +	select HASH
> +	help
> +	  Compute SM3 checksum.
> +	  add SM3 hash functionality
> +

Spurious second line?

Cheers,
Quentin


More information about the U-Boot mailing list