From: Thara Gopinath Date: Thu, 11 Feb 2021 20:01:24 +0000 (-0500) Subject: crypto: qce - Set ivsize to 0 for ecb(aes) X-Git-Tag: v5.13-rc1~200^2~159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=02d0dae3ce2adb5549c7f6c6e714181ed6ee100d;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/qce/skcipher.c b/drivers/crypto/qce/skcipher.c index c2f0469ffb22f..11a2a30631afc 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, },