diff options
author | Thara Gopinath <thara.gopinath@linaro.org> | 2021-02-11 21:01:24 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-03-07 05:13:16 +0100 |
commit | 02d0dae3ce2adb5549c7f6c6e714181ed6ee100d (patch) | |
tree | b763c57dc0c93dbdd7af95932c9fafa9965455bb /drivers/crypto/qce | |
parent | crypto: qce - Return error for non-blocksize data(ECB/CBC algorithms) (diff) | |
download | linux-02d0dae3ce2adb5549c7f6c6e714181ed6ee100d.tar.xz linux-02d0dae3ce2adb5549c7f6c6e714181ed6ee100d.zip |
crypto: qce - Set ivsize to 0 for ecb(aes)
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>
Diffstat (limited to 'drivers/crypto/qce')
-rw-r--r-- | drivers/crypto/qce/skcipher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qce/skcipher.c b/drivers/crypto/qce/skcipher.c index c2f0469ffb22..11a2a30631af 100644 --- 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, }, |