crypto: caam/qi2 - add support for more XTS key lengths
authorAndrei Botila <andrei.botila@nxp.com>
Tue, 22 Sep 2020 16:03:24 +0000 (19:03 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Oct 2020 08:02:11 +0000 (18:02 +1000)
commit596efd57cfa1e1bee575e2a2df44fd8ec5e4a42d
treeabcac06955300bfa023b17fbb1f45aa2d40450b8
parent62b9a6690926ee199445b23fd46e6349d9057146
crypto: caam/qi2 - 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: 226853ac3ebe ("crypto: caam/qi2 - add skcipher algorithms")
Cc: <stable@vger.kernel.org> # v4.20+
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_qi2.c