]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Merge patch series "Add support for SM3 secure hash"
authorTom Rini <trini@konsulko.com>
Thu, 4 Dec 2025 15:39:11 +0000 (09:39 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 4 Dec 2025 15:39:11 +0000 (09:39 -0600)
Heiko Schocher <hs@nabladev.com> says:

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

    u-boot=> tpm2 init
    u-boot=> tpm2 autostart
    tpm2_get_pcr_info: too many pcrs: 5
    Error: -90
    u-boot=>

Implement sm3 hash, so we can fix this problem.

Link: https://lore.kernel.org/r/20251118043042.27726-1-hs@nabladev.com
1  2 
MAINTAINERS
boot/Kconfig

diff --cc MAINTAINERS
Simple merge
diff --cc boot/Kconfig
Simple merge