author: Ard Biesheuvel <ardb@kernel.org> 2020-11-30 13:26:20 +0100
committer: Herbert Xu <herbert@gondor.apana.org.au> 2020-12-04 18:16:53 +1100
commit: 0464e0ef4f144bd5f2fa6ef6e06ab1e0ae4806f6
parent: 1069e97688b21b9c754dc8364ccfb3fea79788bf
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/crypto/aegis128-core.c b/crypto/aegis128-core.c
index 2b05f79475d3..89dc1c559689 100644
--- a/crypto/aegis128-core.c
+++ b/crypto/aegis128-core.c
@@ -89,7 +89,7 @@ static void crypto_aegis128_update_a(struct aegis_state *state,
const union aegis_block *msg,
bool do_simd)
{
- if (do_simd) {
+ if (IS_ENABLED(CONFIG_CRYPTO_AEGIS128_SIMD) && do_simd) {
crypto_aegis128_update_simd(state, msg);
return;
}
@@ -101,7 +101,7 @@ static void crypto_aegis128_update_a(struct aegis_state *state,
static void crypto_aegis128_update_u(struct aegis_state *state, const void *msg,
bool do_simd)
{
- if (do_simd) {
+ if (IS_ENABLED(CONFIG_CRYPTO_AEGIS128_SIMD) && do_simd) {
crypto_aegis128_update_simd(state, msg);
return;
}