]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: skcipher - Make skcipher_walk src.virt.addr const
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 8 Mar 2025 12:53:13 +0000 (20:53 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 15 Mar 2025 08:21:22 +0000 (16:21 +0800)
commit37d451809f572ec197d3c18d9638c8715274255f
tree0f7af0508f4e9e4c5eae64ace1e8252ff4ca0456
parentdb873be6f0549597f92c72986b1939643a7f9a75
crypto: skcipher - Make skcipher_walk src.virt.addr const

Mark the src.virt.addr field in struct skcipher_walk as a pointer
to const data.  This guarantees that the user won't modify the data
which should be done through dst.virt.addr to ensure that flushing
is done when necessary.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
13 files changed:
arch/arm/crypto/aes-ce-glue.c
arch/arm64/crypto/aes-neonbs-glue.c
arch/powerpc/crypto/aes-gcm-p10-glue.c
arch/powerpc/crypto/aes_ctr.c
arch/sparc/crypto/aes_glue.c
arch/x86/crypto/des3_ede_glue.c
crypto/ctr.c
crypto/lrw.c
crypto/pcbc.c
crypto/xctr.c
crypto/xts.c
include/crypto/ctr.h
include/crypto/internal/skcipher.h