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: accepted/tizen/unified/20230118.172025~7441^2~159 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02d0dae3ce2adb5549c7f6c6e714181ed6ee100d;p=platform%2Fkernel%2Flinux-rpi.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 c2f0469..11a2a30 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, },