summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/regex/debug.c
diff options
context:
space:
mode:
authortb <>2022-12-03 09:37:02 +0000
committertb <>2022-12-03 09:37:02 +0000
commitc91ae32eaae4dd7a9c5626f54add0f42dae4368e (patch)
tree70fbe8df8cabed49adc7fa5a648f755b2318b4c6 /src/regress/lib/libc/regex/debug.c
parent72f5b28c734a53d15272c83416fc7d95aea84388 (diff)
downloadopenbsd-c91ae32eaae4dd7a9c5626f54add0f42dae4368e.tar.gz
openbsd-c91ae32eaae4dd7a9c5626f54add0f42dae4368e.tar.bz2
openbsd-c91ae32eaae4dd7a9c5626f54add0f42dae4368e.zip
Refactor and fix bn_mod_exp test
The amount of copy-paste in this test led to a few bugs and it was hard to spot them since things were done in random order. Use a different approach: compute the result of a^b (mod m) according to BN_mod_exp_simple(), then compare the results of all the other *_mod_exp* functions to that. Reuse the test structure from bn_mod_exp_zero.c to loop over the list of functions. This way we test more functions and don't forget to check some crucial bits.
Diffstat (limited to 'src/regress/lib/libc/regex/debug.c')
0 files changed, 0 insertions, 0 deletions