9f5a314d35
When d2i_ECPrivateKey reads a private key with a missing (optional) public key, generate one automatically from the group and private key. (Imported from upstream's 2083f7c465d07867dd9867b8742bb71c03d1f203) Change-Id: I9e5090de87cf846ab92e4be5b6bf64e6091d02e4
32 lines
320 B
CMake
32 lines
320 B
CMake
include_directories(. .. ../../include)
|
|
|
|
add_library(
|
|
ec
|
|
|
|
OBJECT
|
|
|
|
ec.c
|
|
oct.c
|
|
simple.c
|
|
ec_montgomery.c
|
|
wnaf.c
|
|
ec_key.c
|
|
ec_asn1.c
|
|
ec_error.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)
|