milos-linux/drivers/crypto
Paul Moses a7a1f3cdd6 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: 2b789435d7 ("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>
2026-04-16 17:37:03 +08:00
..
allwinner crypto: cryptomgr - Select algorithm types only when CRYPTO_SELFTESTS 2026-04-03 08:56:13 +08:00
amcc
amlogic
aspeed crypto: aspeed - Use memcpy_from_sglist() in aspeed_ahash_dma_prepare() 2026-04-03 08:56:12 +08:00
axis
bcm
caam This update includes the following changes: 2026-04-15 15:22:26 -07:00
cavium
ccp crypto: ccp - copy IV using skcipher ivsize 2026-04-16 17:37:03 +08:00
ccree crypto: ccree - fix a memory leak in cc_mac_digest() 2026-04-12 16:46:28 +08:00
chelsio
gemini
hisilicon crypto: hisilicon - Fix dma_unmap_single() direction 2026-04-12 16:46:29 +08:00
inside-secure crypto: eip93 - fix hmac setkey algo selection 2026-04-16 17:29:40 +08:00
intel crypto: qat - fix IRQ cleanup on 6xxx probe failure 2026-04-12 16:47:10 +08:00
loongson
marvell
nx
qce crypto: qce - simplify qce_xts_swapiv() 2026-04-12 16:46:29 +08:00
rockchip
starfive
stm32
tegra This update includes the following changes: 2026-04-15 15:22:26 -07:00
ti
virtio
xilinx
atmel-aes-regs.h
atmel-aes.c
atmel-authenc.h
atmel-ecc.c
atmel-i2c.c
atmel-i2c.h
atmel-sha-regs.h
atmel-sha.c
atmel-sha204a.c
atmel-tdes-regs.h
atmel-tdes.c
exynos-rng.c
geode-aes.c
geode-aes.h
hifn_795x.c crypto: hifn_795x - Replace snprintf("%s") with strscpy 2026-04-03 08:56:11 +08:00
img-hash.c crypto: img-hash - drop redundant return variable 2026-04-03 08:56:13 +08:00
Kconfig This update includes the following changes: 2026-04-15 15:22:26 -07:00
Makefile
mxs-dcp.c
omap-aes-gcm.c
omap-aes.c
omap-aes.h
omap-crypto.c
omap-crypto.h
omap-des.c
omap-sham.c crypto: omap - convert reqctx buffer to fixed-size array 2026-04-12 16:47:10 +08:00
padlock-aes.c
padlock-sha.c
qcom-rng.c
s5p-sss.c
sa2ul.c crypto: sa2ul - Fix AEAD fallback algorithm names 2026-04-16 17:29:40 +08:00
sa2ul.h
sahara.c
talitos.c crypto: talitos - rename first/last to first_desc/last_desc 2026-04-12 16:46:29 +08:00
talitos.h