2015-08-25 02:03:17 +01:00
|
|
|
include_directories(../../include)
|
2014-06-20 20:00:00 +01:00
|
|
|
|
2015-11-03 22:02:04 +00:00
|
|
|
if (${ARCH} STREQUAL "x86_64")
|
|
|
|
set(
|
|
|
|
EC_ARCH_SOURCES
|
|
|
|
|
|
|
|
p256-x86_64-asm.${ASM_EXT}
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2014-06-20 20:00:00 +01:00
|
|
|
add_library(
|
2015-01-29 00:37:10 +00:00
|
|
|
ec
|
|
|
|
|
|
|
|
OBJECT
|
|
|
|
|
|
|
|
ec.c
|
2015-04-14 20:07:44 +01:00
|
|
|
ec_asn1.c
|
|
|
|
ec_key.c
|
|
|
|
ec_montgomery.c
|
2015-01-29 00:37:10 +00:00
|
|
|
oct.c
|
2015-10-07 01:49:40 +01:00
|
|
|
p224-64.c
|
2015-04-14 20:07:44 +01:00
|
|
|
p256-64.c
|
2015-11-03 22:02:04 +00:00
|
|
|
p256-x86_64.c
|
2015-01-29 00:37:10 +00:00
|
|
|
simple.c
|
2015-11-03 22:02:04 +00:00
|
|
|
util-64.c
|
2015-01-29 00:37:10 +00:00
|
|
|
wnaf.c
|
2015-11-03 22:02:04 +00:00
|
|
|
|
|
|
|
${EC_ARCH_SOURCES}
|
2014-06-20 20:00:00 +01:00
|
|
|
)
|
|
|
|
|
2015-11-03 22:02:04 +00:00
|
|
|
perlasm(p256-x86_64-asm.${ASM_EXT} asm/p256-x86_64-asm.pl)
|
|
|
|
|
2014-06-20 20:00:00 +01:00
|
|
|
add_executable(
|
2015-01-29 00:37:10 +00:00
|
|
|
example_mul
|
2014-06-20 20:00:00 +01:00
|
|
|
|
2015-01-29 00:37:10 +00:00
|
|
|
example_mul.c
|
2015-05-16 00:08:49 +01:00
|
|
|
|
|
|
|
$<TARGET_OBJECTS:test_support>
|
2014-06-20 20:00:00 +01:00
|
|
|
)
|
|
|
|
|
2016-10-25 01:02:26 +01:00
|
|
|
add_executable(
|
|
|
|
p256-x86_64_test
|
|
|
|
|
|
|
|
p256-x86_64_test.cc
|
|
|
|
|
|
|
|
$<TARGET_OBJECTS:test_support>
|
|
|
|
)
|
|
|
|
|
2014-06-20 20:00:00 +01:00
|
|
|
target_link_libraries(example_mul crypto)
|
2016-10-25 01:02:26 +01:00
|
|
|
target_link_libraries(p256-x86_64_test crypto)
|
2017-02-05 19:31:16 +00:00
|
|
|
add_dependencies(all_tests example_mul p256-x86_64_test)
|