8c2e8282ab
BUG=129 Change-Id: I784a745f102d9d09d35b27542d94b2b85dfb332e Reviewed-on: https://boringssl-review.googlesource.com/16508 Reviewed-by: Adam Langley <agl@google.com>
30 lines
363 B
CMake
30 lines
363 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}
|
|
)
|