]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: sm3 - Replace with wrapper around library
authorEric Biggers <ebiggers@kernel.org>
Sat, 21 Mar 2026 04:09:29 +0000 (21:09 -0700)
committerEric Biggers <ebiggers@kernel.org>
Tue, 24 Mar 2026 00:50:59 +0000 (17:50 -0700)
commited065bd06ebe8d92d1647d230a14b9c035ad5b30
tree64f64399e269afaf7251d4a3de973fba9a701ab7
parentd6781b8ba33ae9f6ab2e88c1158e989a24847c4b
crypto: sm3 - Replace with wrapper around library

Reimplement the "sm3" crypto_shash on top of the SM3 library, closely
mirroring the other hash algorithms (e.g. SHA-*).

The result, after later commits migrate the architecture-optimized SM3
code into the library as well, is that crypto/sm3.c will be the single
point of integration between crypto_shash and the actual SM3
implementations, simplifying the code.

Note: to see the diff from crypto/sm3_generic.c to crypto/sm3.c, view
this commit with 'git show -M10'.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20260321040935.410034-7-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
crypto/Makefile
crypto/sm3.c [new file with mode: 0644]
crypto/sm3_generic.c [deleted file]
crypto/testmgr.c
drivers/crypto/starfive/jh7110-hash.c