boringssl/crypto/poly1305/CMakeLists.txt
David Benjamin 0851f67480 Add standalone tests for Poly1305.
RFC 7359 includes tests for various edge cases. Also, as
CRYPTO_poly1305_update can be used single-shot and streaming, we should
explicitly stress both.

Change-Id: Ie44c203a77624be10397ad05f06ca98d937db76f
Reviewed-on: https://boringssl-review.googlesource.com/5410
Reviewed-by: Adam Langley <agl@google.com>
2015-07-10 18:44:01 +00:00

31 lines
384 B
CMake

include_directories(. .. ../../include)
if (${ARCH} STREQUAL "arm")
set(
POLY1305_ARCH_SOURCES
poly1305_arm_asm.S
)
endif()
add_library(
poly1305
OBJECT
poly1305.c
poly1305_arm.c
poly1305_vec.c
${POLY1305_ARCH_SOURCES}
)
add_executable(
poly1305_test
poly1305_test.cc
$<TARGET_OBJECTS:test_support>
)
target_link_libraries(poly1305_test crypto)