WSL2-Linux-Kernel/drivers/crypto/caam
Gaurav Jain 62df66b726 crypto: caam/jr - fix Chacha20 + Poly1305 self test failure
[ Upstream commit a8d3cdcc092fb2f2882acb6c20473a1be0ef4484 ]

key buffer is not copied in chachapoly_setkey function,
results in wrong output for encryption/decryption operation.

fix this by memcpy the key in caam_ctx key arrary

Fixes: d6bbd4eea2 ("crypto: caam/jr - add support for Chacha20 + Poly1305")
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:08:22 +01:00
..
Kconfig
Makefile
caamalg.c crypto: caam/jr - fix Chacha20 + Poly1305 self test failure 2023-11-20 11:08:22 +01:00
caamalg_desc.c
caamalg_desc.h
caamalg_qi.c crypto: caam/qi - simplify error path for context allocation 2020-11-20 14:45:32 +11:00
caamalg_qi2.c crypto: caam/qi2 - fix Chacha20 + Poly1305 self test failure 2023-11-20 11:08:22 +01:00
caamalg_qi2.h
caamhash.c crypto: caam - save caam memory to support crypto engine retry mechanism. 2022-01-27 11:03:24 +01:00
caamhash_desc.c
caamhash_desc.h
caampkc.c crypto: caam - fix unchecked return value error 2023-09-19 12:22:33 +02:00
caampkc.h
caamrng.c
compat.h crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
ctrl.c crypto: caam - Clear some memory in instantiate_rng 2023-05-11 23:00:27 +09:00
ctrl.h
debugfs.c crypto: caam - Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE 2021-02-10 17:55:57 +11:00
debugfs.h
desc.h
desc_constr.h
dpseci-debugfs.c
dpseci-debugfs.h
dpseci.c
dpseci.h
dpseci_cmd.h
error.c
error.h
intern.h crypto: caam - enable crypto-engine retry mechanism 2020-11-06 14:29:11 +11:00
jr.c crypto: caam - enable crypto-engine retry mechanism 2020-11-06 14:29:11 +11:00
jr.h
key_gen.c
key_gen.h
pdb.h
pkc_desc.c
qi.c crypto: caam: Replace in_irq() usage. 2020-11-03 17:41:38 -08:00
qi.h
regs.h crypto: caam - disable pkc for non-E SoCs 2021-11-18 19:16:25 +01:00
sg_sw_qm.h
sg_sw_qm2.h
sg_sw_sec4.h