]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: arm/aes-ce - provide a synchronous version of ctr(aes)
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 2 Jul 2019 19:41:38 +0000 (21:41 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Jul 2019 04:58:10 +0000 (14:58 +1000)
commit59b02a5dcc463ba0bf6ff16eeb4d9387e7e4c526
treee13c9cf4453a4c32dbcc151e94d2774a8097e786
parent2ceabf32c5f89d6726e21fa73cf165e29a7db613
crypto: arm/aes-ce - 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-ce-glue.c