crypto: arm64 - convert to use crypto_simd_usable()
authorEric Biggers <ebiggers@google.com>
Wed, 13 Mar 2019 05:12:50 +0000 (22:12 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Mar 2019 12:57:27 +0000 (20:57 +0800)
commite52b7023cdad005756cd91d7c54fa90ef6b43d32
treeb2aae39c8c5acfe29a6e95f27fc2539ad2efc547
parent99680c5e91829453e001ab5f7e6d717e6d2dcb21
crypto: arm64 - convert to use crypto_simd_usable()

Replace all calls to may_use_simd() in the arm64 crypto code with
crypto_simd_usable(), in order to allow testing the no-SIMD code paths.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
15 files changed:
arch/arm64/crypto/aes-ce-ccm-glue.c
arch/arm64/crypto/aes-ce-glue.c
arch/arm64/crypto/aes-glue.c
arch/arm64/crypto/aes-neonbs-glue.c
arch/arm64/crypto/chacha-neon-glue.c
arch/arm64/crypto/crct10dif-ce-glue.c
arch/arm64/crypto/ghash-ce-glue.c
arch/arm64/crypto/nhpoly1305-neon-glue.c
arch/arm64/crypto/sha1-ce-glue.c
arch/arm64/crypto/sha2-ce-glue.c
arch/arm64/crypto/sha256-glue.c
arch/arm64/crypto/sha3-ce-glue.c
arch/arm64/crypto/sha512-ce-glue.c
arch/arm64/crypto/sm3-ce-glue.c
arch/arm64/crypto/sm4-ce-glue.c