From 066150a94dd8599f818a403dc4011396a374091f Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 31 Oct 2019 09:23:33 +0100 Subject: [PATCH] Swapped aegis256_is_available implementations --- src/libsodium/crypto_aead/aegis256/aesni/aead_aegis256_aesni.c | 2 +- .../crypto_aead/aegis256/armcrypto/aead_aegis256_armcrypto.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_aead/aegis256/aesni/aead_aegis256_aesni.c b/src/libsodium/crypto_aead/aegis256/aesni/aead_aegis256_aesni.c index e6d23974..253dcfe1 100644 --- a/src/libsodium/crypto_aead/aegis256/aesni/aead_aegis256_aesni.c +++ b/src/libsodium/crypto_aead/aegis256/aesni/aead_aegis256_aesni.c @@ -282,7 +282,7 @@ crypto_aead_aegis256_decrypt(unsigned char *m, unsigned long long *mlen_p, unsig int crypto_aead_aegis256_is_available(void) { - return sodium_runtime_has_armcrypto(); + return sodium_runtime_has_aesni(); } #endif diff --git a/src/libsodium/crypto_aead/aegis256/armcrypto/aead_aegis256_armcrypto.c b/src/libsodium/crypto_aead/aegis256/armcrypto/aead_aegis256_armcrypto.c index e73c3769..2f4cb285 100644 --- a/src/libsodium/crypto_aead/aegis256/armcrypto/aead_aegis256_armcrypto.c +++ b/src/libsodium/crypto_aead/aegis256/armcrypto/aead_aegis256_armcrypto.c @@ -283,7 +283,7 @@ crypto_aead_aegis256_decrypt(unsigned char *m, unsigned long long *mlen_p, unsig int crypto_aead_aegis256_is_available(void) { - return sodium_runtime_has_aesni(); + return sodium_runtime_has_armcrypto(); } #endif