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
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
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
ctrl.c crypto: caam - Clear some memory in instantiate_rng 2023-05-11 23:00:27 +09:00
ctrl.h
debugfs.c
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
jr.c
jr.h
key_gen.c
key_gen.h
pdb.h
pkc_desc.c
qi.c
qi.h
regs.h
sg_sw_qm.h
sg_sw_qm2.h
sg_sw_sec4.h