boringssl/crypto/newhope/CMakeLists.txt
Matt Braithwaite 045a0ffe35 Import `newhope' (post-quantum key exchange).
This derives from the reference implementation:

Source: https://github.com/tpoeppelmann/newhope/tree/master/ref at bc06c1ac
Paper: https://eprint.iacr.org/2015/1092

However, it does not interoperate, due to the replacement of SHAKE-128
with AES-CTR (for polynomial generation) and the replacement of SHA-3
with SHA-256 (for key whitening).

Change-Id: I6a55507aea85331245e2fbd41bae5cc049fdca3c
Reviewed-on: https://boringssl-review.googlesource.com/7690
Reviewed-by: Adam Langley <agl@google.com>
2016-04-26 22:53:59 +00:00

23 lines
279 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>
)
target_link_libraries(newhope_test crypto)
add_dependencies(all_tests newhope_test)