b1b6229fc8
Nexus 7 goes from 1002.8 ops/sec to 4704.8 at a cost of 10KB of code. (It'll actually save code if built with -mfpu=neon because then the generic version can be discarded by the compiler.) Change-Id: Ia6d02efb2c2d1bb02a07eb56ec4ca3b0dba99382 Reviewed-on: https://boringssl-review.googlesource.com/6524 Reviewed-by: Adam Langley <agl@google.com>
37 lines
442 B
CMake
37 lines
442 B
CMake
include_directories(../../include)
|
|
|
|
if (${ARCH} STREQUAL "arm")
|
|
set(
|
|
CURVE25519_ARCH_SOURCES
|
|
|
|
asm/x25519-arm.S
|
|
)
|
|
endif()
|
|
|
|
add_library(
|
|
curve25519
|
|
|
|
OBJECT
|
|
|
|
curve25519.c
|
|
|
|
${CURVE25519_ARCH_SOURCES}
|
|
)
|
|
|
|
add_executable(
|
|
ed25519_test
|
|
|
|
ed25519_test.cc
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
target_link_libraries(ed25519_test crypto)
|
|
|
|
add_executable(
|
|
x25519_test
|
|
|
|
x25519_test.cc
|
|
)
|
|
|
|
target_link_libraries(x25519_test crypto)
|