crypto: x86/aes-xts - change len parameter to int
authorEric Biggers <ebiggers@google.com>
Thu, 12 Dec 2024 21:28:43 +0000 (13:28 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 21 Dec 2024 14:46:24 +0000 (22:46 +0800)
commit77a4b5675b0494bb47926cc63593378243778dfd
treea1e925593a2acb4b296b38827fb84b28aad7d69a
parentbd7e7df6e660ecc1e9c0d9d97215fc0732a9d7e1
crypto: x86/aes-xts - change len parameter to int

The AES-XTS assembly code currently treats the length as signed, since
this saves a few instructions in the loop compared to treating it as
unsigned.  Therefore update the type to make this clear.  (It is not
actually passed any values larger than PAGE_SIZE.)

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aes-xts-avx-x86_64.S
arch/x86/crypto/aesni-intel_glue.c