projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5652d55
)
crypto: hisilicon/sec - fixup 3des minimum key size declaration
author
Kai Ye
<yekai13@huawei.com>
Fri, 28 May 2021 11:42:06 +0000
(19:42 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 3 Jun 2021 12:24:06 +0000
(20:24 +0800)
Fixup the 3des algorithm minimum key size declaration.
Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_crypto.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/hisilicon/sec2/sec_crypto.c
b/drivers/crypto/hisilicon/sec2/sec_crypto.c
index
b91cf2b
..
5926b64
100644
(file)
--- a/
drivers/crypto/hisilicon/sec2/sec_crypto.c
+++ b/
drivers/crypto/hisilicon/sec2/sec_crypto.c
@@
-1861,11
+1861,11
@@
static struct skcipher_alg sec_skciphers[] = {
AES_BLOCK_SIZE, AES_BLOCK_SIZE)
SEC_SKCIPHER_ALG("ecb(des3_ede)", sec_setkey_3des_ecb,
- SEC_DES3_
2
KEY_SIZE, SEC_DES3_3KEY_SIZE,
+ SEC_DES3_
3
KEY_SIZE, SEC_DES3_3KEY_SIZE,
DES3_EDE_BLOCK_SIZE, 0)
SEC_SKCIPHER_ALG("cbc(des3_ede)", sec_setkey_3des_cbc,
- SEC_DES3_
2
KEY_SIZE, SEC_DES3_3KEY_SIZE,
+ SEC_DES3_
3
KEY_SIZE, SEC_DES3_3KEY_SIZE,
DES3_EDE_BLOCK_SIZE, DES3_EDE_BLOCK_SIZE)
SEC_SKCIPHER_ALG("xts(sm4)", sec_setkey_sm4_xts,