crypto: x86/aes-xts - access round keys using single-byte offsets
authorEric Biggers <ebiggers@google.com>
Tue, 9 Apr 2024 00:01:54 +0000 (20:01 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Apr 2024 10:54:18 +0000 (18:54 +0800)
commitb924ecd305c43c41b21ab246e986e2a8effa5743
treee41021c459a4cdfc460b7314f016d6aff0fe501f
parent6a6d6a3a328a59ed0d8ae2e65696ef38e49133a0
crypto: x86/aes-xts - access round keys using single-byte offsets

Access the AES round keys using offsets -7*16 through 7*16, instead of
0*16 through 14*16.  This allows VEX-encoded instructions to address all
round keys using 1-byte offsets, whereas before some needed 4-byte
offsets.  This decreases the code size of aes-xts-avx-x86_64.o by 4.2%.

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