1895493868
This change incorporates Intel's P-256 implementation. The record of Intel's submission under CLA is in internal bug number 25330687. Before: Did 3582 ECDH P-256 operations in 1049114us (3414.3 ops/sec) Did 8525 ECDSA P-256 signing operations in 1028778us (8286.5 ops/sec) Did 3487 ECDSA P-256 verify operations in 1008996us (3455.9 ops/sec) build/tool/bssl is 1434704 bytes after strip -s After: Did 8618 ECDH P-256 operations in 1027884us (8384.2 ops/sec) Did 21000 ECDSA P-256 signing operations in 1049490us (20009.7 ops/sec) Did 8268 ECDSA P-256 verify operations in 1079481us (7659.2 ops/sec) build/tool/bssl is 1567216 bytes after strip -s Change-Id: I147971a8e19849779c8ed7e20310d41bd4962299 Reviewed-on: https://boringssl-review.googlesource.com/6371 Reviewed-by: Adam Langley <agl@google.com>
52 lines
670 B
CMake
52 lines
670 B
CMake
include_directories(../../include)
|
|
|
|
if (${ARCH} STREQUAL "x86_64")
|
|
set(
|
|
EC_ARCH_SOURCES
|
|
|
|
p256-x86_64-asm.${ASM_EXT}
|
|
)
|
|
endif()
|
|
|
|
add_library(
|
|
ec
|
|
|
|
OBJECT
|
|
|
|
ec.c
|
|
ec_asn1.c
|
|
ec_key.c
|
|
ec_montgomery.c
|
|
oct.c
|
|
p224-64.c
|
|
p256-64.c
|
|
p256-x86_64.c
|
|
simple.c
|
|
util-64.c
|
|
wnaf.c
|
|
|
|
${EC_ARCH_SOURCES}
|
|
)
|
|
|
|
perlasm(p256-x86_64-asm.${ASM_EXT} asm/p256-x86_64-asm.pl)
|
|
|
|
add_executable(
|
|
example_mul
|
|
|
|
example_mul.c
|
|
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
add_executable(
|
|
ec_test
|
|
|
|
ec_test.cc
|
|
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
target_link_libraries(example_mul crypto)
|
|
target_link_libraries(ec_test crypto)
|
|
add_dependencies(all_tests example_mul ec_test)
|