MLK-19365: drivers: crypto: caamalg: ecb(aes) does not use IV
authorFranck LENORMAND <franck.lenormand@nxp.com>
Thu, 13 Sep 2018 17:04:03 +0000 (19:04 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:45:31 +0000 (02:45 +0300)
commit0cfefbbdfced45f361c1ee3595630b59f795bf58
treef075a34cd8ecc33ca5a58b75cb5ec91cf4fb07f9
parentea2b30c8171acf7624e3d44276737c3878ca900d
MLK-19365: drivers: crypto: caamalg: ecb(aes) does not use IV

The crypto template lrw(crypto/lrw.c) and xts(crypto/xts.c) require
an ecb(aes) algo as base which ivsize must be zero as ecb(aes)
doesn't need an IV.

The patch 84f5e22194 "MA-9807: Fix ecb(aes) use without an IV"
add support in caamalg for ecb(aes) without iv.

The ecb(aes) implementation of the CAAM declare an ivsize which is
against specification. So remove it to be usable with cryto templates.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
(cherry picked from commit 825831cf1292b6081ef6eee2f01af4704132f4a9)
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/crypto/caam/caamalg.c