aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorPaul Moses <p@1g4.org>2026-04-01 03:07:49 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2026-04-16 17:37:03 +0800
commita7a1f3cdd64d8a165d9b8c9e9ad7fb46ac19dfc4 (patch)
treebda716bb1729300be07c0a89328a6c9ae837c291 /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com
parentcrypto: ccp: Don't attempt to copy ID to userspace if PSP command failed (diff)
crypto: ccp - copy IV using skcipher ivsize
AF_ALG rfc3686-ctr-aes-ccp requests pass an 8-byte IV to the driver. ccp_aes_complete() restores AES_BLOCK_SIZE bytes into the caller's IV buffer while RFC3686 skciphers expose an 8-byte IV, so the restore overruns the provided buffer. Use crypto_skcipher_ivsize() to copy only the algorithm's IV length. Fixes: 2b789435d7f3 ("crypto: ccp - CCP AES crypto API support") Signed-off-by: Paul Moses <p@1g4.org> Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions