Add bn_mod_exp_zero test

This commit is contained in:
Theo Buehler 2022-12-03 11:33:59 +01:00
parent e29d66d700
commit 302cda57d8
2 changed files with 13 additions and 0 deletions

View File

@ -138,6 +138,13 @@ set_source_files_properties(bn_mod_exp.c PROPERTIES COMPILE_FLAGS
target_link_libraries(bn_mod_exp ${OPENSSL_TEST_LIBS})
add_test(bn_mod_exp bn_mod_exp)
# bn_mod_exp_zero
add_executable(bn_mod_exp_zero bn_mod_exp_zero.c)
set_source_files_properties(bn_mod_exp_zero.c PROPERTIES COMPILE_FLAGS
-ULIBRESSL_INTERNAL)
target_link_libraries(bn_mod_exp_zero ${OPENSSL_TEST_LIBS})
add_test(bn_mod_exp_zero bn_mod_exp_zero)
# bn_mod_exp2_mont
add_executable(bn_mod_exp2_mont bn_mod_exp2_mont.c)
target_link_libraries(bn_mod_exp2_mont ${OPENSSL_TEST_LIBS})

View File

@ -149,6 +149,12 @@ check_PROGRAMS += bn_mod_exp
bn_mod_exp_CPPFLAGS = $(AM_CPPFLAGS) -ULIBRESSL_INTERNAL
bn_mod_exp_SOURCES = bn_mod_exp.c
# bn_mod_exp_zero
TESTS += bn_mod_exp_zero
check_PROGRAMS += bn_mod_exp_zero
bn_mod_exp_zero_CPPFLAGS = $(AM_CPPFLAGS) -ULIBRESSL_INTERNAL
bn_mod_exp_zero_SOURCES = bn_mod_exp_zero.c
# bn_mod_exp2_mont
TESTS += bn_mod_exp2_mont
check_PROGRAMS += bn_mod_exp2_mont