diff options
author | Pascal van Leeuwen <pascalvanl@gmail.com> | 2019-09-13 11:10:36 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-10-04 17:06:04 +0200 |
commit | fcca797d2adb83be198db8530f1fd4f6c60e81fe (patch) | |
tree | 3aa5a0b0794e12a7a5af8896228a96b60acee9c2 /drivers/crypto/inside-secure/safexcel.c | |
parent | crypto: testmgr - Added testvectors for the hmac(sm3) ahash (diff) | |
download | linux-fcca797d2adb83be198db8530f1fd4f6c60e81fe.tar.xz linux-fcca797d2adb83be198db8530f1fd4f6c60e81fe.zip |
crypto: inside-secure - Add support for the ecb(sm4) skcipher
This patch adds support for SM4 in ECB mode, i.e. skcipher ecb(sm4).
changes since v1:
- make SAFEXCEL_SM4 case entry explit, using the proper SM4_BLOCK_SIZE
instead of "borrowing" the AES code which "coincidentally" works
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 87d431afd44d..0ac3b45b7b69 100644 --- a/drivers/crypto/inside-secure/safexcel.c +++ b/drivers/crypto/inside-secure/safexcel.c @@ -1178,6 +1178,7 @@ static struct safexcel_alg_template *safexcel_algs[] = { &safexcel_alg_chachapoly_esp, &safexcel_alg_sm3, &safexcel_alg_hmac_sm3, + &safexcel_alg_ecb_sm4, }; static int safexcel_register_algorithms(struct safexcel_crypto_priv *priv) |