linux-stable/drivers/crypto/caam
Gaurav Jain 17c890a887 crypto: caam/jr - fix Chacha20 + Poly1305 self test failure
[ Upstream commit a8d3cdcc09 ]

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:52:05 +01:00
..
Kconfig This update includes the following changes: 2022-05-27 18:06:49 -07:00
Makefile This update includes the following changes: 2022-05-27 18:06:49 -07:00
blob_gen.c crypto: caam - add in-kernel interface for blob generator 2022-05-23 18:47:50 +03:00
caamalg.c crypto: caam/jr - fix Chacha20 + Poly1305 self test failure 2023-11-20 11:52:05 +01:00
caamalg_desc.c crypto: caam/jr - add support for XTS with 16B IV 2020-10-02 18:02:12 +10:00
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:52:05 +01:00
caamalg_qi2.h
caamhash.c crypto: caam - save caam memory to support crypto engine retry mechanism. 2021-12-03 15:56:17 +11:00
caamhash_desc.c crypto: caam - drop unexpected word 'for' in comments 2022-06-30 15:56:57 +08:00
caamhash_desc.h
caampkc.c crypto: caam - fix unchecked return value error 2023-09-13 09:42:33 +02:00
caampkc.h
caamprng.c crypto: caam/rng - Add support for PRNG 2022-05-06 18:16:55 +08:00
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:03:20 +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 This update includes the following changes: 2022-05-27 18:06:49 -07:00
jr.c crypto: caam/rng - Add support for PRNG 2022-05-06 18:16:55 +08:00
jr.h
key_gen.c
key_gen.h
pdb.h treewide: Replace zero-length arrays with flexible-array members 2022-02-17 07:00:39 -06:00
pkc_desc.c
qi.c crypto: caam/qi2 - switch to netif_napi_add_tx_weight() 2022-07-15 16:43:21 +08:00
qi.h
regs.h crypto: caam - determine whether CAAM supports blob encap/decap 2022-05-23 18:47:50 +03:00
sg_sw_qm.h
sg_sw_qm2.h
sg_sw_sec4.h