kernel_samsung_a53x/drivers/crypto/caam
Gaurav Jain d33f214248 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: d6bbd4eea243 ("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>
2024-11-18 11:43:03 +01:00
..
caamalg.c crypto: caam/jr - fix Chacha20 + Poly1305 self test failure 2024-11-18 11:43:03 +01:00
caamalg_desc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamalg_desc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamalg_qi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamalg_qi2.c crypto: caam/qi2 - fix Chacha20 + Poly1305 self test failure 2024-11-18 11:43:03 +01:00
caamalg_qi2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamhash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamhash_desc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamhash_desc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caampkc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caampkc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
caamrng.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
compat.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ctrl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
desc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
desc_constr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpseci-debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpseci-debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpseci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpseci.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dpseci_cmd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
error.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
error.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intern.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
key_gen.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
key_gen.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pdb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pkc_desc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sg_sw_qm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sg_sw_qm2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sg_sw_sec4.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00