OSDN Git Service

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)
commit8daa399edeed4cfa792ccea12beda50d445ab6a0
tree744b6b42a0a24a6351898cbe3dbaa1e62ce03343
parente236ab0d43622a8a5a8ff06630fd467b444a9db9
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