crypto: caam/qi2 - add fallback for XTS with more than 8B IV
authorAndrei Botila <andrei.botila@nxp.com>
Tue, 22 Sep 2020 16:03:21 +0000 (19:03 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Oct 2020 08:02:11 +0000 (18:02 +1000)
commit36e2d7cfdcf17b6126863d884d4200191e922524
treee93a0f4355dcc10f844188b24cce41d820d25109
parent83e8aa9121380b23ebae6e413962fa2a7b52cf92
crypto: caam/qi2 - add fallback for XTS with more than 8B IV

A hardware limitation exists for CAAM until Era 9 which restricts
the accelerator to IVs with only 8 bytes. When CAAM has a lower era
a fallback is necessary to process 16 bytes IV.

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/Kconfig
drivers/crypto/caam/caamalg_qi2.c
drivers/crypto/caam/caamalg_qi2.h