diff options
author | Pascal van Leeuwen <pascalvanl@gmail.com> | 2019-09-13 11:10:37 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-10-04 17:06:04 +0200 |
commit | 6f2d14288ec1d659503c37e965de825131462a1a (patch) | |
tree | 0bc3114766f1a29001042d840f5a6825e0e193e6 /drivers/crypto/inside-secure/safexcel.c | |
parent | crypto: inside-secure - Add support for the ecb(sm4) skcipher (diff) | |
download | linux-6f2d14288ec1d659503c37e965de825131462a1a.tar.xz linux-6f2d14288ec1d659503c37e965de825131462a1a.zip |
crypto: inside-secure - Add support for the cbc(sm4) skcipher
This patch adds support for SM4 in CBC mode, i.e. skcipher cbc(sm4).
changes since v1:
- nothing
Signed-off-by: Pascal van Leeuwen <pvanleeuwen@verimatrix.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/inside-secure/safexcel.c')
-rw-r--r-- | drivers/crypto/inside-secure/safexcel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/inside-secure/safexcel.c b/drivers/crypto/inside-secure/safexcel.c index 0ac3b45b7b69..ac1d5b89cd8d 100644 --- a/drivers/crypto/inside-secure/safexcel.c +++ b/drivers/crypto/inside-secure/safexcel.c @@ -1179,6 +1179,7 @@ static struct safexcel_alg_template *safexcel_algs[] = { &safexcel_alg_sm3, &safexcel_alg_hmac_sm3, &safexcel_alg_ecb_sm4, + &safexcel_alg_cbc_sm4, }; static int safexcel_register_algorithms(struct safexcel_crypto_priv *priv) |