From mboxrd@z Thu Jan 1 00:00:00 1970 From: ard.biesheuvel@linaro.org (Ard Biesheuvel) Date: Mon, 10 Sep 2018 16:41:11 +0200 Subject: [PATCH 0/4] crypto: arm64/aes-blk - cleanups and optimizations for XTS/CTS-CBC Message-ID: <20180910144115.25727-1-ard.biesheuvel@linaro.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Some cleanups and optimizations for the arm64 AES skcipher routines. Patch #1 fixes the peculiar use of u8 arrays to refer to AES round keys, which are natively arrays of u32. Patch #2 partially reverts the use of NEON yield calls, which is not needed for skciphers. Patch #3 adds support for cts(cbc(aes)) in the NEON chaining mode handling. Patch #4 tweaks the XTS handling to remove a literal load from the inner loop. Cc: Eric Biggers Cc: Theodore Ts'o Cc: Steve Capper Ard Biesheuvel (4): crypto: arm64/aes-blk - remove pointless (u8 *) casts crypto: arm64/aes-blk - revert NEON yield for skciphers crypto: arm64/aes-blk - add support for CTS-CBC mode crypto: aes/arm64-blk - improve XTS mask handling arch/arm64/crypto/aes-ce.S | 5 + arch/arm64/crypto/aes-glue.c | 212 +++++++++-- arch/arm64/crypto/aes-modes.S | 400 ++++++++++---------- arch/arm64/crypto/aes-neon.S | 6 + 4 files changed, 406 insertions(+), 217 deletions(-) -- 2.18.0