crypto: x86/aes-xts - make the fast path 64-bit specific
authorEric Biggers <ebiggers@google.com>
Mon, 27 Jan 2025 21:16:09 +0000 (13:16 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 9 Feb 2025 10:08:11 +0000 (18:08 +0800)
commit50dd4b4d41c64e86937dda9a1464549c8ae7238a
tree7dcecc3423cad04ca57cb1cab6b5fed2ad2afe0f
parent1d19058d86e55b1fc89a53b854a97b63b0f4c2b9
crypto: x86/aes-xts - make the fast path 64-bit specific

Remove 32-bit support from the fast path in xts_crypt().  Then optimize
it for 64-bit, and simplify the code, by switching to sg_virt() and
removing the now-unnecessary checks for crossing a page boundary.

The result is simpler code that is slightly smaller and faster in the
case that actually matters (64-bit).

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