]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: scatterwalk - Change scatterwalk_next calling convention
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 8 Mar 2025 12:45:21 +0000 (20:45 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 15 Mar 2025 08:21:22 +0000 (16:21 +0800)
commit65775cf313987926e9746b0ca7f5519d297af2da
treedc1780648078be24407cdb67e591cf7e8478654c
parentb949f55644a6d1645c0a71f78afabf12aec7c33b
crypto: scatterwalk - Change scatterwalk_next calling convention

Rather than returning the address and storing the length into an
argument pointer, add an address field to the walk struct and use
that to store the address.  The length is returned directly.

Change the done functions to use this stored address instead of
getting them from the caller.

Split the address into two using a union.  The user should only
access the const version so that it is never changed.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
14 files changed:
arch/arm/crypto/ghash-ce-glue.c
arch/arm64/crypto/aes-ce-ccm-glue.c
arch/arm64/crypto/ghash-ce-glue.c
arch/arm64/crypto/sm4-ce-ccm-glue.c
arch/arm64/crypto/sm4-ce-gcm-glue.c
arch/s390/crypto/aes_s390.c
arch/x86/crypto/aegis128-aesni-glue.c
arch/x86/crypto/aesni-intel_glue.c
crypto/aegis128-core.c
crypto/scatterwalk.c
crypto/skcipher.c
drivers/crypto/nx/nx.c
include/crypto/algapi.h
include/crypto/scatterwalk.h