ad6b28e974
This is taken from upstream, although it originally came from us. This will only take effect on 64-bit systems (x86-64 and aarch64). Before: Did 1496 ECDH P-256 operations in 1038743us (1440.2 ops/sec) Did 2783 ECDSA P-256 signing operations in 1081006us (2574.5 ops/sec) Did 2400 ECDSA P-256 verify operations in 1059508us (2265.2 ops/sec) After: Did 4147 ECDH P-256 operations in 1061723us (3905.9 ops/sec) Did 9372 ECDSA P-256 signing operations in 1040589us (9006.4 ops/sec) Did 4114 ECDSA P-256 verify operations in 1063478us (3868.4 ops/sec) Change-Id: I11fabb03239cc3a7c4a97325ed4e4c97421f91a9
33 lines
345 B
CMake
33 lines
345 B
CMake
include_directories(. .. ../../include)
|
|
|
|
add_library(
|
|
ec
|
|
|
|
OBJECT
|
|
|
|
ec.c
|
|
ec_asn1.c
|
|
ec_key.c
|
|
ec_montgomery.c
|
|
oct.c
|
|
p256-64.c
|
|
util-64.c
|
|
simple.c
|
|
wnaf.c
|
|
)
|
|
|
|
add_executable(
|
|
example_mul
|
|
|
|
example_mul.c
|
|
)
|
|
|
|
add_executable(
|
|
ec_test
|
|
|
|
ec_test.c
|
|
)
|
|
|
|
target_link_libraries(example_mul crypto)
|
|
target_link_libraries(ec_test crypto)
|