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>pull/10/head
parent
913183fda6
commit
d87e6ae62d
|
@ -1887,7 +1887,7 @@ static struct caam_alg_template driver_algs[] = {
|
|||
.geniv = "eseqiv",
|
||||
.min_keysize = AES_MIN_KEY_SIZE,
|
||||
.max_keysize = AES_MAX_KEY_SIZE,
|
||||
.ivsize = AES_BLOCK_SIZE,
|
||||
.ivsize = 0,
|
||||
},
|
||||
.class1_alg_type = OP_ALG_ALGSEL_AES | OP_ALG_AAI_ECB,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue