summaryrefslogtreecommitdiff
path: root/src/regress/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* bn_test: keep the error stack cleantb2023-04-071-1/+13
| | | | | | Make message() print and clear the error stack. This way we can know what test errored. To make this work also clear the error stack after a handful of xfail tests.
* bn_test: use bn_copy() instead of BN_free/BN_duptb2023-04-071-3/+2
| | | | This is not only simpler but also required by an upcoming change.
* bn_test: a few early return would leak. goto err insteadtb2023-04-071-5/+5
|
* bn_test: rand_neg() is not only one of the most stupidly named functionstb2023-04-071-2/+2
| | | | in the entire code base it also has a few parentheses too many
* bn_test: handle rc consistentlytb2023-04-071-111/+134
| | | | | | | Various test functions had bugs due to the fact that the return code would be set to 1 at the top so that each error would have to set rc = 0. This is silly. Fail closed instead by setting rc = 0 at the top and only flipping to 1 before the err label
* bn_test: inline the only use of lst[]tb2023-04-071-14/+12
| | | | | | lst[] can be converted from a bit string to a hex string. Use BN_hex2bn() isntead of BN_bin2bn(). Handle this inside test_lshift() rather than doing artistic ownership dances.
* Improve some test failure reportingtb2023-04-071-5/+12
|
* Ignore ten getter and setter control macros related to proxy BIOs.schwarze2023-04-071-0/+6
| | | | | | | Those are not useful because such a BIO type neither exists in LibreSSL nor in OpenSSL 1.1.1. Not adding the deprecation notice to some manual page because there is no manual page that is even vaguely related.
* Two minor tweaks that are useful for processing bio.h, among other headers:schwarze2023-04-071-1/+2
| | | | | * ignore lines defining "__bounded__()" * ignore whitespace between "#" and "include"
* Move a comment to the proper placetb2023-04-061-6/+5
|
* wycheproof: fix copy-paste error in previoustb2023-04-061-2/+2
|
* wycheproof: use EVP_MD instead of importing "hash"tb2023-04-061-70/+52
|
* Check and assign on one linetb2023-04-061-3/+2
|
* Zap extra empty linetb2023-04-061-2/+1
|
* bn_mod_sqrt: Improve a handful of comments and a printftb2023-04-051-5/+9
|
* Improve regress coverage for BN_mod_sqrt()tb2023-04-051-3/+2783
| | | | | This now covers all the main branches of both the old and new BN_mod_sqrt() implementation except for negative p.
* Simplify mod_sqrt_test() a bittb2023-04-051-35/+16
|
* bn_mod_sqrt test: Use a #define rather than hard coded 100tb2023-04-051-3/+5
|
* Add coverage for the truly non-deterministic path of Tonelli-Shankstb2023-04-051-4/+1625
| | | | | Regress coverage of all of BN_mod_sqrt() is still lacking after this. This will improve in forthcoming commits.
* Clean bn_mod_sqrt up a littletb2023-04-041-28/+53
| | | | | This makes it look a bit more like other tests and also prepares the addition of further test cases and different tests.
* Link bn_gcd test to regresstb2023-04-031-1/+3
|
* Add regress coverage for BN_gcd() and BN_gcd_ct()tb2023-04-031-0/+3664
|
* Add regress coverage for the new behavior of BN_copy() with respect totb2023-03-311-1/+161
| | | | flags.
* Add a regress for the recent BIO_new_NDEF() write after freetb2023-03-311-2/+59
| | | | | | This is a simple reproducer for a write after free that avoids all the mess with CMS, PKCS7 and SMIME. This now mostly allows ASAN to check that the memory handling in this marvellous function is correct.
* Rework test failure printingtb2023-03-291-25/+33
| | | | | Make sure it's always printed to stderr. Use a wrapper for printing a BIGNUM rather than repeating the same ugly pattern over and over again.
* Dedup print functions on test failuretb2023-03-291-29/+14
|
* Fix printfs that escaped defensive greppingtb2023-03-291-5/+5
|
* Dedup generate_test_triple() and generate_test_quintuple()tb2023-03-291-50/+20
|
* Use more consistent names for the main test functionstb2023-03-291-7/+7
|
* Remove one of those ugly function tablestb2023-03-291-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 readabilitytb2023-03-291-45/+43
|
* bn_mod_exp: make this test a bit less noisy on failuretb2023-03-271-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()tb2023-03-272-13/+13
|
* Remove the now almost empty and unused bn_mod_exp2_mont.ctb2023-03-261-22/+0
|
* Unhook bn_mod_exp2_mont testtb2023-03-261-2/+1
|
* Fold the small BN_mod_exp2_mont() crash test into bn_mod_exp.ctb2023-03-262-23/+27
|
* Test negative modulus as well.tb2023-03-261-5/+7
| | | | Lower the number of rounds. These tests are expensive.
* Align bn_mod_exp_zero_test() with bn_mod_exp_test()tb2023-03-261-11/+11
|
* Fix copy-paste errortb2023-03-261-2/+2
|
* Add regress coverage for some BIO_f_asn1() bugs fixed before releasetb2023-03-262-1/+176
|
* Fix a typo in dump_exp_results()tb2023-03-261-2/+2
|
* Add more extensive regress coverage for BN_mod_exp2_mont()tb2023-03-261-1/+191
|
* Rename dump_results() into dump_exp_results()tb2023-03-261-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 belongstb2023-03-261-3/+3
|
* Add regress coverage for an issue with BN_mod_exp2_mont() reportedtb2023-03-261-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 thetb2023-03-261-2/+5
| | | | primes table in directly.
* bn_mod_exp_ret() fix stupid logic errortb2023-03-261-4/+5
|
* Guard GF2m-specifics with OPENSSL_NO_EC2Mtb2023-03-251-2/+7
|
* Enable FRP256v2 teststb2023-03-251-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 codetb2023-03-251-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.