From: Christophe Leroy Date: Tue, 21 May 2019 13:34:13 +0000 (+0000) Subject: crypto: talitos - fix ECB algs ivsize X-Git-Tag: v5.2.16~20 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=dcefbf43b00340f437364ae3488abe80566d6e75;p=users%2Fdwmw2%2Flinux.git crypto: talitos - fix ECB algs ivsize commit d84cc9c9524ec5973a337533e6d8ccd3e5f05f2b upstream. ECB's ivsize must be 0. Signed-off-by: Christophe Leroy Fixes: 5e75ae1b3cef ("crypto: talitos - add new crypto modes") Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index ac8a8a5b42083..ca635fb4ac1ea 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -2814,7 +2814,6 @@ static struct talitos_alg_template driver_algs[] = { .cra_ablkcipher = { .min_keysize = AES_MIN_KEY_SIZE, .max_keysize = AES_MAX_KEY_SIZE, - .ivsize = AES_BLOCK_SIZE, .setkey = ablkcipher_aes_setkey, } }, @@ -2849,7 +2848,6 @@ static struct talitos_alg_template driver_algs[] = { .cra_ablkcipher = { .min_keysize = DES_KEY_SIZE, .max_keysize = DES_KEY_SIZE, - .ivsize = DES_BLOCK_SIZE, .setkey = ablkcipher_des_setkey, } }, @@ -2885,7 +2883,6 @@ static struct talitos_alg_template driver_algs[] = { .cra_ablkcipher = { .min_keysize = DES3_EDE_KEY_SIZE, .max_keysize = DES3_EDE_KEY_SIZE, - .ivsize = DES3_EDE_BLOCK_SIZE, .setkey = ablkcipher_des3_setkey, } },