boringssl/crypto/newhope/CMakeLists.txt
Matt Braithwaite 6b7436b0d2 newhope: restore statistical tests.
One of these tests the distribution of noise polynomials; the other
tests that that agreed-upon keys (prior to whitening) have roughly equal
numbers of 0s and 1s.

Along the way, expose a few more API bits.

Change-Id: I6b04708d41590de45d82ea95bae1033cfccd5d67
Reviewed-on: https://boringssl-review.googlesource.com/8130
Reviewed-by: Adam Langley <agl@google.com>
2016-06-03 21:26:18 +00:00

41 lines
699 B
CMake

add_library(
newhope
OBJECT
error_correction.c
newhope.c
ntt.c
poly.c
precomp.c
reduce.c
)
add_executable(
newhope_test
newhope_test.c
$<TARGET_OBJECTS:test_support>
)
add_executable(
newhope_statistical_test
newhope_statistical_test.cc
$<TARGET_OBJECTS:test_support>
)
add_executable(
newhope_vectors_test
newhope_vectors_test.cc
$<TARGET_OBJECTS:test_support>
)
target_link_libraries(newhope_test crypto)
target_link_libraries(newhope_statistical_test crypto)
target_link_libraries(newhope_vectors_test crypto)
add_dependencies(all_tests newhope_test)
add_dependencies(all_tests newhope_statistical_test)
add_dependencies(all_tests newhope_vectors_test)