commit | 6a805864740cf46ac449ba6cd04fa8a683b27593 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Fri Apr 19 22:54:55 2024 -0700 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Apr 26 17:26:10 2024 +0800 |
tree | 8bb8a0b9ec573e061c50f577605974af4723ae2a | |
parent | c819d7b836c5dfca0854d3e56664293601f2176d [diff] |
crypto: x86/aes-xts - simplify loop in xts_crypt_slowpath() Since the total length processed by the loop in xts_crypt_slowpath() is a multiple of AES_BLOCK_SIZE, just round the length down to AES_BLOCK_SIZE even on the last step. This doesn't change behavior, as the last step will process a multiple of AES_BLOCK_SIZE regardless. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>