]> asedeno.scripts.mit.edu Git - linux.git/commit
crypto: arm/aes-neonbs - provide a synchronous version of ctr(aes)
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 2 Jul 2019 19:41:39 +0000 (21:41 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Jul 2019 04:58:11 +0000 (14:58 +1000)
commite5f050402f1870317826990e968493e4411a0d53
tree88ce00a234aa97f71df7e4a7fa254fc8d82458db
parent5eedf315f27d3990f4d00c7cd3b9751e184a83b1
crypto: arm/aes-neonbs - provide a synchronous version of ctr(aes)

AES in CTR mode is used by modes such as GCM and CCM, which are often
used in contexts where only synchronous ciphers are permitted. So
provide a synchronous version of ctr(aes) based on the existing code.
This requires a non-SIMD fallback to deal with invocations occurring
from a context where SIMD instructions may not be used. We have a
helper for this now in the AES library, so wire that up.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/crypto/aes-neonbs-glue.c