summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/inside-secure/safexcel.c
diff options
context:
space:
mode:
authorPascal van Leeuwen <pascalvanl@gmail.com>2019-09-13 11:10:38 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-10-04 17:06:04 +0200
commit03a6cfb97f8f28373a6fed68deefccb5e98e1072 (patch)
tree9ca4886d1d370f12847a582086fc811bd22c8803 /drivers/crypto/inside-secure/safexcel.c
parentcrypto: inside-secure - Add support for the cbc(sm4) skcipher (diff)
downloadlinux-03a6cfb97f8f28373a6fed68deefccb5e98e1072.tar.xz
linux-03a6cfb97f8f28373a6fed68deefccb5e98e1072.zip
crypto: inside-secure - Add support for the ofb(sm4) skcipher
This patch adds support for SM4 in OFB mode, i.e. skcipher ofb(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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/inside-secure/safexcel.c b/drivers/crypto/inside-secure/safexcel.c
index ac1d5b89cd8d..e3873f2db7d3 100644
--- a/drivers/crypto/inside-secure/safexcel.c
+++ b/drivers/crypto/inside-secure/safexcel.c
@@ -1180,6 +1180,7 @@ static struct safexcel_alg_template *safexcel_algs[] = {
&safexcel_alg_hmac_sm3,
&safexcel_alg_ecb_sm4,
&safexcel_alg_cbc_sm4,
+ &safexcel_alg_ofb_sm4,
};
static int safexcel_register_algorithms(struct safexcel_crypto_priv *priv)