2015-08-25 02:03:17 +01:00
|
|
|
include_directories(../../include)
|
2014-06-20 20:00:00 +01:00
|
|
|
|
2015-04-13 19:04:21 +01:00
|
|
|
if (${ARCH} STREQUAL "x86_64")
|
|
|
|
set(
|
|
|
|
RAND_ARCH_SOURCES
|
|
|
|
|
|
|
|
rdrand-x86_64.${ASM_EXT}
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2014-06-20 20:00:00 +01:00
|
|
|
add_library(
|
2015-01-29 00:37:10 +00:00
|
|
|
rand
|
2014-06-20 20:00:00 +01:00
|
|
|
|
2015-01-29 00:37:10 +00:00
|
|
|
OBJECT
|
2014-06-20 20:00:00 +01:00
|
|
|
|
2017-04-10 23:42:22 +01:00
|
|
|
ctrdrbg.c
|
2016-03-02 03:57:32 +00:00
|
|
|
deterministic.c
|
2017-01-13 19:49:38 +00:00
|
|
|
fuchsia.c
|
2015-01-29 00:37:10 +00:00
|
|
|
rand.c
|
|
|
|
urandom.c
|
|
|
|
windows.c
|
2015-04-13 19:04:21 +01:00
|
|
|
|
|
|
|
${RAND_ARCH_SOURCES}
|
2014-06-20 20:00:00 +01:00
|
|
|
)
|
2015-04-13 19:04:21 +01:00
|
|
|
|
|
|
|
perlasm(rdrand-x86_64.${ASM_EXT} asm/rdrand-x86_64.pl)
|
2017-04-10 23:42:22 +01:00
|
|
|
|
|
|
|
add_executable(
|
|
|
|
ctrdrbg_vector_test
|
|
|
|
|
|
|
|
ctrdrbg_vector_test.cc
|
|
|
|
|
|
|
|
$<TARGET_OBJECTS:test_support>
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(ctrdrbg_vector_test crypto)
|
|
|
|
add_dependencies(all_tests ctrdrbg_vector_test)
|