crypto: caam/qi - add support for more XTS key lengths
authorAndrei Botila <andrei.botila@nxp.com>
Tue, 22 Sep 2020 16:03:23 +0000 (19:03 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Oct 2020 08:02:11 +0000 (18:02 +1000)
commit62b9a6690926ee199445b23fd46e6349d9057146
treee736325547af795e0ab1d5455a6bc5b4140017b2
parentc91f734862664ca86dc3ee7e55f199e2bde829e4
crypto: caam/qi - add support for more XTS key lengths

CAAM accelerator only supports XTS-AES-128 and XTS-AES-256 since
it adheres strictly to the standard. All the other key lengths
are accepted and processed through a fallback as long as they pass
the xts_verify_key() checks.

Fixes: b189817cf789 ("crypto: caam/qi - add ablkcipher and authenc algorithms")
Cc: <stable@vger.kernel.org> # v4.12+
Signed-off-by: Andrei Botila <andrei.botila@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_qi.c