[PATCH v3 0/6] Add support for SM3 secure hash
Heiko Schocher
hs at nabladev.com
Fri Dec 5 06:03:24 CET 2025
Hello Tom,
On 04.12.25 20:31, Tom Rini wrote:
> On Tue, 18 Nov 2025 05:30:36 +0100, Heiko Schocher wrote:
>
>> Add SM3 secure hash, as specified by OSCCA GM/T 0004-2012 SM3 and described
>> at https://datatracker.ietf.org/doc/html/draft-sca-cfrg-sm3-02
>>
>> TPMv2 defines hash algo sm3_256, which is currently
>> not supported and prevented TPMv2 chip with newer
>> firmware to work with U-Boot. Seen this on a ST33TPHF2XI2C
>>
>> [...]
>
> Applied to u-boot/next, thanks!
>
> [1/6] lib: Import rol32 function from Linux
> commit: 6a0c939b88fd42c6b0a374f7c87317f292df46a1
> [2/6] lib: import sm3 256 hash parts from linux
> commit: 41c0131b950a16747929ab310588cf5db8e38123
> [3/6] lib: sm3: implement U-Boot parts
> commit: c4ab316269debc321907acc4f8f02dfe5653aeaf
> [4/6] test: cmd: hash: add unit test for sm3_256
> commit: 213601a600f1e8894cea76b0bfc131f038882407
> [5/6] tpm2: add sm3 256 hash support
> commit: 7c3f05ad51e4bc23dd4f411f28968f1d8f43099c
> [6/6] test: cmd: fix a typo in md5 test
> commit: b30557b3b46c5162cb88a57907c517ed95557239
Oh, may a little to fast, as Ilias and Quentin had some comments
about tpm2 implementation/test (tpm2: add sm3 256 hash support
patch). But I can send changes on top of that patches (but
give me some time for it... end of year rally has started...)
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