]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: arm64/aes-neon-ctr - improve handling of single tail block
authorArd Biesheuvel <ardb@kernel.org>
Thu, 27 Jan 2022 09:52:11 +0000 (10:52 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 5 Feb 2022 04:10:51 +0000 (15:10 +1100)
commit5a7e91dda1bc1bf6a876429f3901a9af66105ad4
tree744b6b42a0a24a6351898cbe3dbaa1e62ce03343
parentb1d7cbbbc30b3dd5d750b82a4cb13a3b3b18088a
crypto: arm64/aes-neon-ctr - improve handling of single tail block

Instead of falling back to C code to do a memcpy of the output of the
last block, handle this in the asm code directly if possible, which is
the case if the entire input is longer than 16 bytes.

Cc: Nathan Huckleberry <nhuck@google.com>
Cc: Eric Biggers <ebiggers@google.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/aes-glue.c
arch/arm64/crypto/aes-modes.S