c7a3a14872
In doing so, check for malloc failures and use scopers as appropriate. This should clear rsa_test for use with malloc tests. Also replace the SetKey macro and exploded RSA keys with a DER RSAPrivateKey structure. Much less tedious. Change-Id: I3ce092ef67e7ac2af74f509abbdf84b7f2b6d45d Reviewed-on: https://boringssl-review.googlesource.com/5043 Reviewed-by: Adam Langley <agl@google.com>
24 lines
251 B
CMake
24 lines
251 B
CMake
include_directories(. .. ../../include)
|
|
|
|
add_library(
|
|
rsa
|
|
|
|
OBJECT
|
|
|
|
rsa.c
|
|
rsa_impl.c
|
|
blinding.c
|
|
padding.c
|
|
rsa_asn1.c
|
|
)
|
|
|
|
add_executable(
|
|
rsa_test
|
|
|
|
rsa_test.cc
|
|
|
|
$<TARGET_OBJECTS:test_support>
|
|
)
|
|
|
|
target_link_libraries(rsa_test crypto)
|