[PATCH v3 3/6] lib: sm3: implement U-Boot parts
Heiko Schocher
hs at nabladev.com
Wed Nov 19 08:13:09 CET 2025
Hello Quentin,
On 18.11.25 11:30, Quentin Schulz wrote:
> 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/.
>
> [...]
Thanks for this hint, of course!
>
>> 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?
I think, I added this line, because of checkpatch warning!
But as the other hash commands have also only one line...
If it is okay to ignore the checkpatch warning, I remove that
line.
Thanks!
bye,
Heiko
--
Nabla Software Engineering
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: office at nabladev.com
Geschäftsführer : Stefano Babic
More information about the U-Boot
mailing list