]> 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)
commitaf2518d627b06fbedd45cb4d37304b01099e949d
tree744b6b42a0a24a6351898cbe3dbaa1e62ce03343
parent0d466d15776c89ed16e428450d077dc6e56cf92c
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