diff --git a/src/crypto/sha3/Makefile.am b/src/crypto/sha3/Makefile.am index 4de670746..d0b496b75 100644 --- a/src/crypto/sha3/Makefile.am +++ b/src/crypto/sha3/Makefile.am @@ -6,7 +6,9 @@ if USE_SHA3_OPENSSL libsha3_la_SOURCES += sha3_ossl.c endif if USE_AVX2_INSTRUCTIONS +if USE_AES_INSTRUCTIONS libsha3_la_SOURCES += sha3x4.c endif +endif sha3_c.c: fips202.c sp800-185.c diff --git a/src/crypto/sha3/sha3.h b/src/crypto/sha3/sha3.h index 11a5c2dc2..8e2eabe3a 100644 --- a/src/crypto/sha3/sha3.h +++ b/src/crypto/sha3/sha3.h @@ -499,7 +499,7 @@ void OQS_SHA3_cshake128_simple(uint8_t *output, size_t outlen, uint16_t cstm, co */ void OQS_SHA3_cshake256_simple(uint8_t *output, size_t outlen, uint16_t cstm, const uint8_t *input, size_t inplen); -#ifdef USE_AVX2_INSTRUCTIONS +#if defined(USE_AVX2_INSTRUCTIONS) && defined(USE_AES_INSTRUCTIONS) /** * \brief Seed 4 parallel SHAKE-128 instances, and generate 4 arrays of pseudo-random bytes. *