projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44b45cd
)
crypto: qce - Set ivsize to 0 for ecb(aes)
author
Thara Gopinath
<thara.gopinath@linaro.org>
Thu, 11 Feb 2021 20:01:24 +0000
(15:01 -0500)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sun, 7 Mar 2021 04:13:16 +0000
(15:13 +1100)
ECB transformations do not have an IV and hence set the ivsize to 0 for
ecb(aes).
Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qce/skcipher.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/qce/skcipher.c
b/drivers/crypto/qce/skcipher.c
index c2f0469ffb22f6069972cb63ef62e5a64d282b60..11a2a30631afcd1a4a34a6da77da2c96583c6f3b 100644
(file)
--- a/
drivers/crypto/qce/skcipher.c
+++ b/
drivers/crypto/qce/skcipher.c
@@
-353,7
+353,7
@@
static const struct qce_skcipher_def skcipher_def[] = {
.name = "ecb(aes)",
.drv_name = "ecb-aes-qce",
.blocksize = AES_BLOCK_SIZE,
- .ivsize =
AES_BLOCK_SIZE
,
+ .ivsize =
0
,
.min_keysize = AES_MIN_KEY_SIZE,
.max_keysize = AES_MAX_KEY_SIZE,
},