Keccak4x needs both AVX2 and AES

This commit is contained in:
Douglas Stebila 2019-07-08 21:27:02 -04:00
parent decb6b198c
commit ac467b470c
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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.
*