diff options
author | Theo Buehler <tb@openbsd.org> | 2022-12-03 11:33:59 +0100 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2022-12-03 11:33:59 +0100 |
commit | 302cda57d86cc2c302cdcd05471a30d872c8aeba (patch) | |
tree | 72b1d7e5f3f207daae8008f92c04fef3676b11bf /tests | |
parent | e29d66d700740cda915aae650638fc8de916dd26 (diff) | |
download | portable-302cda57d86cc2c302cdcd05471a30d872c8aeba.tar.gz portable-302cda57d86cc2c302cdcd05471a30d872c8aeba.tar.bz2 portable-302cda57d86cc2c302cdcd05471a30d872c8aeba.zip |
Add bn_mod_exp_zero test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 7 | ||||
-rw-r--r-- | tests/Makefile.am | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d590708..4685c5b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -138,6 +138,13 @@ set_source_files_properties(bn_mod_exp.c PROPERTIES COMPILE_FLAGS | |||
138 | target_link_libraries(bn_mod_exp ${OPENSSL_TEST_LIBS}) | 138 | target_link_libraries(bn_mod_exp ${OPENSSL_TEST_LIBS}) |
139 | add_test(bn_mod_exp bn_mod_exp) | 139 | add_test(bn_mod_exp bn_mod_exp) |
140 | 140 | ||
141 | # bn_mod_exp_zero | ||
142 | add_executable(bn_mod_exp_zero bn_mod_exp_zero.c) | ||
143 | set_source_files_properties(bn_mod_exp_zero.c PROPERTIES COMPILE_FLAGS | ||
144 | -ULIBRESSL_INTERNAL) | ||
145 | target_link_libraries(bn_mod_exp_zero ${OPENSSL_TEST_LIBS}) | ||
146 | add_test(bn_mod_exp_zero bn_mod_exp_zero) | ||
147 | |||
141 | # bn_mod_exp2_mont | 148 | # bn_mod_exp2_mont |
142 | add_executable(bn_mod_exp2_mont bn_mod_exp2_mont.c) | 149 | add_executable(bn_mod_exp2_mont bn_mod_exp2_mont.c) |
143 | target_link_libraries(bn_mod_exp2_mont ${OPENSSL_TEST_LIBS}) | 150 | target_link_libraries(bn_mod_exp2_mont ${OPENSSL_TEST_LIBS}) |
diff --git a/tests/Makefile.am b/tests/Makefile.am index 3f655d3..6202bb3 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
@@ -149,6 +149,12 @@ check_PROGRAMS += bn_mod_exp | |||
149 | bn_mod_exp_CPPFLAGS = $(AM_CPPFLAGS) -ULIBRESSL_INTERNAL | 149 | bn_mod_exp_CPPFLAGS = $(AM_CPPFLAGS) -ULIBRESSL_INTERNAL |
150 | bn_mod_exp_SOURCES = bn_mod_exp.c | 150 | bn_mod_exp_SOURCES = bn_mod_exp.c |
151 | 151 | ||
152 | # bn_mod_exp_zero | ||
153 | TESTS += bn_mod_exp_zero | ||
154 | check_PROGRAMS += bn_mod_exp_zero | ||
155 | bn_mod_exp_zero_CPPFLAGS = $(AM_CPPFLAGS) -ULIBRESSL_INTERNAL | ||
156 | bn_mod_exp_zero_SOURCES = bn_mod_exp_zero.c | ||
157 | |||
152 | # bn_mod_exp2_mont | 158 | # bn_mod_exp2_mont |
153 | TESTS += bn_mod_exp2_mont | 159 | TESTS += bn_mod_exp2_mont |
154 | check_PROGRAMS += bn_mod_exp2_mont | 160 | check_PROGRAMS += bn_mod_exp2_mont |