Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Dedup print functions on test failure | tb | 2023-03-29 | 1 | -29/+14 | |
| | ||||||
* | Fix printfs that escaped defensive grepping | tb | 2023-03-29 | 1 | -5/+5 | |
| | ||||||
* | Dedup generate_test_triple() and generate_test_quintuple() | tb | 2023-03-29 | 1 | -50/+20 | |
| | ||||||
* | Use more consistent names for the main test functions | tb | 2023-03-29 | 1 | -7/+7 | |
| | ||||||
* | Remove one of those ugly function tables | tb | 2023-03-29 | 1 | -34/+9 | |
| | | | | | The only reason there were two of them was to avoid some pointless comparisons. The gain is not worth the price. | |||||
* | Rename a few variables for readability | tb | 2023-03-29 | 1 | -45/+43 | |
| | ||||||
* | bn_mod_exp: make this test a bit less noisy on failure | tb | 2023-03-27 | 1 | -7/+7 | |
| | | | | | While it is good to run more tests on failure, it is pointless to try broken things thousands of times. | |||||
* | Switch regress to using bn_copy() | tb | 2023-03-27 | 2 | -13/+13 | |
| | ||||||
* | Remove the now almost empty and unused bn_mod_exp2_mont.c | tb | 2023-03-26 | 1 | -22/+0 | |
| | ||||||
* | Unhook bn_mod_exp2_mont test | tb | 2023-03-26 | 1 | -2/+1 | |
| | ||||||
* | Fold the small BN_mod_exp2_mont() crash test into bn_mod_exp.c | tb | 2023-03-26 | 2 | -23/+27 | |
| | ||||||
* | Test negative modulus as well. | tb | 2023-03-26 | 1 | -5/+7 | |
| | | | | Lower the number of rounds. These tests are expensive. | |||||
* | Align bn_mod_exp_zero_test() with bn_mod_exp_test() | tb | 2023-03-26 | 1 | -11/+11 | |
| | ||||||
* | Fix copy-paste error | tb | 2023-03-26 | 1 | -2/+2 | |
| | ||||||
* | Add regress coverage for some BIO_f_asn1() bugs fixed before release | tb | 2023-03-26 | 2 | -1/+176 | |
| | ||||||
* | Fix a typo in dump_exp_results() | tb | 2023-03-26 | 1 | -2/+2 | |
| | ||||||
* | Add more extensive regress coverage for BN_mod_exp2_mont() | tb | 2023-03-26 | 1 | -1/+191 | |
| | ||||||
* | Rename dump_results() into dump_exp_results() | tb | 2023-03-26 | 1 | -4/+4 | |
| | | | | | This prepares for consistency with an upcoming diff. While here fix an argument order bug. | |||||
* | Move the N_MOD_EXP_TESTS up to where it belongs | tb | 2023-03-26 | 1 | -3/+3 | |
| | ||||||
* | Add regress coverage for an issue with BN_mod_exp2_mont() reported | tb | 2023-03-26 | 1 | -1/+23 | |
| | | | | | | | | by Guido Vranken in ossfuzz #55997. This test currently fails and will be fixed momentarily. This also checks sensible behavior with respect to zero exponents for this functions. | |||||
* | bn_primes: there is no need to link this statically. It can pull the | tb | 2023-03-26 | 1 | -2/+5 | |
| | | | | primes table in directly. | |||||
* | bn_mod_exp_ret() fix stupid logic error | tb | 2023-03-26 | 1 | -4/+5 | |
| | ||||||
* | Guard GF2m-specifics with OPENSSL_NO_EC2M | tb | 2023-03-25 | 1 | -2/+7 | |
| | ||||||
* | Enable FRP256v2 tests | tb | 2023-03-25 | 1 | -6/+2 | |
| | | | | | This was previously disabled because tb apparently can't grep. Exercise this curve as well as part of the new test cases in ECDH wycheproof. | |||||
* | Remove dead/unreachable code | tb | 2023-03-25 | 1 | -7/+1 | |
| | | | | | A copy-paste error would have resulted in a modified msg in case ctLen == 0 or msgLen == 0. So obviously this is unreachable code. | |||||
* | KNF: some missing spaces after comma | tb | 2023-03-18 | 1 | -5/+5 | |
| | ||||||
* | Rename bn_mod_exp_zero to the more appropriate bn_mod_exp | tb | 2023-03-18 | 2 | -4/+4 | |
| | ||||||
* | Retire the bn_mod_exp test. | tb | 2023-03-18 | 2 | -222/+1 | |
| | | | | Its is fully covered by bn_mod_exp_zero now. | |||||
* | Reimplement a variant of the bn_mod_exp tests from scratch | tb | 2023-03-18 | 1 | -2/+202 | |
| | | | | | This exercises the same corner cases as bn_mod_exp and a few more. With input from jsing | |||||
* | Include tests with negative values in BN_mod_exp* regress. | jsing | 2023-03-15 | 1 | -2/+15 | |
| | | | | This currently fails. | |||||
* | bn_mod_exp_zero: rename result into got | tb | 2023-03-15 | 1 | -14/+14 | |
| | ||||||
* | Add OPENSSL_cleanup() calls to some regress. | jsing | 2023-03-11 | 2 | -2/+6 | |
| | | | | This gets us some minimal test coverage. | |||||
* | Add regress coverage for BN_{add,sub,mul,div,mod}_word(). | jsing | 2023-03-11 | 2 | -1/+619 | |
| | | | | | | | This also provides some indirect coverage for BN_hex2bn(), BN_bn2hex() and BN_get_word(). Two of these tests are currently failing and will be fixed shortly. | |||||
* | Mark test table as static const. | jsing | 2023-03-11 | 1 | -2/+2 | |
| | ||||||
* | Use BN_free() instead of BN_clear_free() | tb | 2023-03-08 | 1 | -2/+2 | |
| | ||||||
* | reduce number of tests in bn_rand_interval. | tb | 2023-03-08 | 1 | -2/+2 | |
| | | | | | This is only testing basic functionality anyway, so 10000 tests are more than enough. | |||||
* | bn_isqrt: reduce number of tests to 100. | tb | 2023-03-08 | 1 | -2/+2 | |
| | | | | | | The runtime is roughly quadratic in N_TESTS. While it only takes 1-2s on modern machines, this test takes a long time on slow machines. A reduction of runtime by a factor of ~16 is significant. | |||||
* | Process up to four test vector files concurrently. | jsing | 2023-03-08 | 1 | -4/+30 | |
| | | | | | | | | | This avoids having a slow down when processing test vector files that only have a single group. Note that the processing of test vector files is in turn going to be rate limited by the number of concurrent test groups, which means we do not need variable limits for vectors. Reduces a Wycheproof regress run down to ~8 seconds on an Apple M1. | |||||
* | Run test groups concurrently. | jsing | 2023-03-08 | 1 | -144/+151 | |
| | | | | | | | Add a basic test coordinator, that allows for Wycheproof test groups to be run concurrently. This can be further improved (especially for vectors that have limited test groups), however it already reduces the regress duration by about half on an Apple M1. | |||||
* | zap more audit remnants | tb | 2023-03-08 | 1 | -6/+1 | |
| | ||||||
* | Remove acceptable audit. | jsing | 2023-03-08 | 1 | -94/+1 | |
| | | | | | | | This code would need changes to be safe to use concurrently - remove it since it is somewhat incomplete and needs reworking. Requested by tb@ | |||||
* | bio_chain test: fix error message | tb | 2023-03-04 | 1 | -2/+2 | |
| | ||||||
* | Simplify the ct Makefile slightly | tb | 2023-03-02 | 1 | -7/+3 | |
| | ||||||
* | Clean up the x509 regress make file a little | tb | 2023-03-02 | 1 | -27/+10 | |
| | ||||||
* | Remove a few more unnecessary line continuations | tb | 2023-03-02 | 1 | -4/+4 | |
| | ||||||
* | Nitpick error checks of BN_get_mem_data() | tb | 2023-03-02 | 1 | -15/+27 | |
| | | | | | BN_get_mem_data() returns a non-positive long on error, so assigning it to a size_t and displaying that in error messages is incorrect. | |||||
* | Some more Makefile cosmetics | tb | 2023-03-02 | 1 | -10/+15 | |
| | | | | | The verbose evp test actually depends on the evptest binary. Use consistent spacing and indentation. | |||||
* | The evp_ecx_test no longer needs static linking | tb | 2023-03-02 | 1 | -3/+1 | |
| | ||||||
* | Hide the hexdumps behind a verbose flags. Should have been part of | tb | 2023-03-02 | 1 | -26/+45 | |
| | | | | the previous commit. | |||||
* | Simplify evp test Makefile. | tb | 2023-03-02 | 1 | -18/+5 | |
| | | | | | Make evptest silent by default: these pages of hexdumps are useless noise. Add a verbose target for debugging. |