# The *_IMPL variables are absolute paths
# as they are needed in the tests/ sub-directory.
if(OQS_USE_AES_OPENSSL)
    set(AES_IMPL ${CMAKE_CURRENT_LIST_DIR}/aes/aes_ossl.c)
else()
    set(AES_IMPL ${CMAKE_CURRENT_LIST_DIR}/aes/aes_c.c)
endif()

if(OQS_USE_SHA2_OPENSSL)
    set(SHA2_IMPL ${CMAKE_CURRENT_LIST_DIR}/sha2/sha2_ossl.c)
else()
    set(SHA2_IMPL ${CMAKE_CURRENT_LIST_DIR}/sha2/sha2_c.c)
endif()

set(SHA3_IMPL ${CMAKE_CURRENT_LIST_DIR}/sha3/sha3_c.c)
if(OQS_USE_SHA3_OPENSSL)
    set(SHA3_IMPL ${SHA3_IMPL} ${CMAKE_CURRENT_LIST_DIR}/sha3/sha3_ossl.c)
endif()
if(OQS_USE_AVX2_INSTRUCTIONS AND OQS_USE_AES_INSTRUCTIONS)
    set(SHA3_IMPL ${SHA3_IMPL} ${CMAKE_CURRENT_LIST_DIR}/sha3/sha3x4.c)
endif()
