diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2022-01-07 20:06:55 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-01-28 16:51:10 +1100 |
commit | eb90686d5d10fef9cadd9c0eb30f3fee66d2b2a5 (patch) | |
tree | cde8ab5fdcd6712014a4d2e869210825bebc3b83 /lib/crypto/Kconfig | |
parent | 68ce6126e11364dd5b3a5c5113b4285c56d8d249 (diff) | |
download | linux-eb90686d5d10fef9cadd9c0eb30f3fee66d2b2a5.tar.gz linux-eb90686d5d10fef9cadd9c0eb30f3fee66d2b2a5.tar.bz2 linux-eb90686d5d10fef9cadd9c0eb30f3fee66d2b2a5.zip |
crypto: sm3 - create SM3 stand-alone library
Stand-alone implementation of the SM3 algorithm. It is designed
to have as little dependencies as possible. In other cases you
should generally use the hash APIs from include/crypto/hash.h.
Especially when hashing large amounts of data as those APIs may
be hw-accelerated. In the new SM3 stand-alone library,
sm3_transform() has also been optimized, instead of simply using
the code in sm3_generic.
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Reviewed-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/crypto/Kconfig')
-rw-r--r-- | lib/crypto/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/crypto/Kconfig b/lib/crypto/Kconfig index e8e525650cf2..379a66d7f504 100644 --- a/lib/crypto/Kconfig +++ b/lib/crypto/Kconfig @@ -123,6 +123,9 @@ config CRYPTO_LIB_CHACHA20POLY1305 config CRYPTO_LIB_SHA256 tristate +config CRYPTO_LIB_SM3 + tristate + config CRYPTO_LIB_SM4 tristate |