android_kernel_xiaomi_sm8350/drivers/crypto/caam
Gaurav Jain 7b62cf90d0 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 10:30:12 +01:00
..
caamalg_desc.c
caamalg_desc.h
caamalg_qi2.c
caamalg_qi2.h
caamalg_qi.c
caamalg.c crypto: caam/jr - fix Chacha20 + Poly1305 self test failure 2023-11-20 10:30:12 +01:00
caamhash_desc.c
caamhash_desc.h
caamhash.c
caampkc.c
caampkc.h
caamrng.c
compat.h
ctrl.c
ctrl.h
desc_constr.h
desc.h
dpseci_cmd.h
dpseci-debugfs.c
dpseci-debugfs.h
dpseci.c
dpseci.h
error.c
error.h
intern.h
jr.c
jr.h
Kconfig
key_gen.c
key_gen.h
Makefile
pdb.h
pkc_desc.c
qi.c
qi.h
regs.h
sg_sw_qm2.h
sg_sw_qm.h
sg_sw_sec4.h