linux/drivers/crypto/caam
Andrei Botila 9b463a246d crypto: caam - update xts sector size for large input length
[ Upstream commit 3f142b6a7b ]

Since in the software implementation of XTS-AES there is
no notion of sector every input length is processed the same way.
CAAM implementation has the notion of sector which causes different
results between the software implementation and the one in CAAM
for input lengths bigger than 512 bytes.
Increase sector size to maximum value on 16 bits.

Fixes: c6415a6016 ("crypto: caam - add support for acipher xts(aes)")
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-17 10:48:54 +02:00
..
caamalg_desc.c crypto: caam - update xts sector size for large input length 2020-04-17 10:48:54 +02:00
caamalg_desc.h crypto: caam - fix concurrency issue in givencrypt descriptor 2019-10-11 18:20:54 +02:00
caamalg_qi.c crypto: caam/qi - fix error path in xts setkey 2018-08-25 19:50:41 +08:00
caamalg.c crypto: caam - limit output IV to CBC to work around CTR mode DMA issue 2019-07-26 09:14:29 +02:00
caamhash.c crypto: caam - fix DMA mapping of stack memory 2019-03-23 20:09:40 +01:00
caampkc.c crypto: caam - fix DMA mapping direction for RSA forms 2 & 3 2018-08-25 19:50:41 +08:00
caampkc.h crypto: caam - strip input zeros from RSA input buffer 2018-04-21 00:59:03 +08:00
caamrng.c crypto: caam - free resources in case caam_rng registration failed 2020-01-27 14:51:03 +01:00
compat.h
ctrl.c crypto: caam - fix MC firmware detection 2018-05-31 00:13:46 +08:00
ctrl.h
desc_constr.h
desc.h
error.c crypto: caam - fix caam_dump_sg that iterates through scatterlist 2020-01-27 14:50:47 +01:00
error.h
intern.h crypto: caam - fix MC firmware detection 2018-05-31 00:13:46 +08:00
jr.c crypto: caam/jr - fix descriptor DMA unmapping 2018-08-25 19:50:40 +08:00
jr.h
Kconfig
key_gen.c
key_gen.h
Makefile
pdb.h
pkc_desc.c
qi.c crypto: caam/qi - fix warning in init_cgr() 2018-05-31 00:13:47 +08:00
qi.h
regs.h crypto: caam - fix implicit casts in endianness helpers 2018-11-13 11:08:36 -08:00
sg_sw_qm.h
sg_sw_qm2.h staging: fsl-mc: Move DPIO from staging to drivers/soc/fsl 2018-07-24 16:18:55 -05:00
sg_sw_sec4.h staging: fsl-mc: Move DPIO from staging to drivers/soc/fsl 2018-07-24 16:18:55 -05:00