01d65c27ec
BUG=129 Change-Id: I5f812c87d6a02f5b4de0d9153afe7399e124382b Reviewed-on: https://boringssl-review.googlesource.com/15465 Commit-Queue: Steven Valdez <svaldez@google.com> Reviewed-by: Steven Valdez <svaldez@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
40 lines
534 B
CMake
40 lines
534 B
CMake
include_directories(../../include)
|
|
|
|
if (${ARCH} STREQUAL "arm")
|
|
set(
|
|
CURVE25519_ARCH_SOURCES
|
|
|
|
asm/x25519-asm-arm.S
|
|
)
|
|
endif()
|
|
|
|
if (${ARCH} STREQUAL "x86_64")
|
|
set(
|
|
CURVE25519_ARCH_SOURCES
|
|
|
|
asm/x25519-asm-x86_64.S
|
|
)
|
|
endif()
|
|
|
|
add_library(
|
|
curve25519
|
|
|
|
OBJECT
|
|
|
|
curve25519.c
|
|
spake25519.c
|
|
x25519-x86_64.c
|
|
|
|
${CURVE25519_ARCH_SOURCES}
|
|
)
|
|
|
|
add_executable(
|
|
ed25519_test
|
|
|
|
ed25519_test.cc
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
target_link_libraries(ed25519_test crypto)
|
|
add_dependencies(all_tests ed25519_test)
|