1
0
Fork 0

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
Franck LENORMAND 2018-09-13 19:04:03 +02:00 committed by Jason Liu
parent 913183fda6
commit d87e6ae62d
1 changed files with 1 additions and 1 deletions

View File

@ -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,
},