diff options
author | Eric Biggers <ebiggers@google.com> | 2019-03-13 06:12:49 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-03-22 13:57:27 +0100 |
commit | 99680c5e91829453e001ab5f7e6d717e6d2dcb21 (patch) | |
tree | 8df83b5be0ccfd591925444694b79771d62abe4d /arch/arm/crypto/nhpoly1305-neon-glue.c | |
parent | crypto: x86 - convert to use crypto_simd_usable() (diff) | |
download | linux-99680c5e91829453e001ab5f7e6d717e6d2dcb21.tar.xz linux-99680c5e91829453e001ab5f7e6d717e6d2dcb21.zip |
crypto: arm - convert to use crypto_simd_usable()
Replace all calls to may_use_simd() in the arm 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>
Diffstat (limited to 'arch/arm/crypto/nhpoly1305-neon-glue.c')
-rw-r--r-- | arch/arm/crypto/nhpoly1305-neon-glue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/crypto/nhpoly1305-neon-glue.c b/arch/arm/crypto/nhpoly1305-neon-glue.c index 49aae87cb2bc..ae5aefc44a4d 100644 --- a/arch/arm/crypto/nhpoly1305-neon-glue.c +++ b/arch/arm/crypto/nhpoly1305-neon-glue.c @@ -9,6 +9,7 @@ #include <asm/neon.h> #include <asm/simd.h> #include <crypto/internal/hash.h> +#include <crypto/internal/simd.h> #include <crypto/nhpoly1305.h> #include <linux/module.h> @@ -25,7 +26,7 @@ static void _nh_neon(const u32 *key, const u8 *message, size_t message_len, static int nhpoly1305_neon_update(struct shash_desc *desc, const u8 *src, unsigned int srclen) { - if (srclen < 64 || !may_use_simd()) + if (srclen < 64 || !crypto_simd_usable()) return crypto_nhpoly1305_update(desc, src, srclen); do { |