summaryrefslogtreecommitdiff
path: root/CREDITS
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2024-04-12 18:45:59 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2024-04-19 13:54:19 +0300
commit1d27e1f5c8f7ade40f0e85ddecbe9158393265e5 (patch)
treedcb89b2012f831522217c6d98808e97a353e1ed4 /CREDITS
parent3525fe475245ec5e8bc119749d31a727bc8f41ab (diff)
downloadlinux-1d27e1f5c8f7ade40f0e85ddecbe9158393265e5.tar.xz
crypto: x86/aes-xts - handle CTS encryption more efficiently
When encrypting a message whose length isn't a multiple of 16 bytes, encrypt the last full block in the main loop. This works because only decryption uses the last two tweaks in reverse order, not encryption. This improves the performance of decrypting messages whose length isn't a multiple of the AES block length, shrinks the size of aes-xts-avx-x86_64.o by 5.0%, and eliminates two instructions (a test and a not-taken conditional jump) when encrypting a message whose length *is* a multiple of the AES block length. While it's not super useful to optimize for ciphertext stealing given that it's rarely needed in practice, the other two benefits mentioned above make this optimization worthwhile. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions