crypto: arm64/aes-ccm - Pass short inputs via stack buffer
authorArd Biesheuvel <ardb@kernel.org>
Thu, 18 Jan 2024 17:06:32 +0000 (18:06 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Jan 2024 08:39:32 +0000 (16:39 +0800)
commit97c4c10dafcd0d8c19bf01743df4b75dbdc484d7
tree7da0f450a285dfec9684f72db1c7ea3bfbc63d6f
parent88c6d50f649b2805bbdfe0b616892f93db47e4fa
crypto: arm64/aes-ccm - Pass short inputs via stack buffer

In preparation for optimizing the CCM core asm code using permutation
vectors and overlapping loads and stores, ensure that inputs shorter
than the size of a AES block are passed via a buffer on the stack, in a
way that positions the data at the end of a 16 byte buffer. This removes
the need for the asm code to reason about a rare corner case where the
tail of the data cannot be read/written using a single NEON load/store
instruction.

While at it, tweak the copyright header and authorship to bring it up to
date.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/aes-ce-ccm-glue.c