Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | recp -> reciprocal renaming in tests | tb | 2025-02-12 | 1 | -2/+2 |
| | |||||
* | Add a few more test cases for mod_exp aliasing | tb | 2023-10-19 | 1 | -33/+78 |
| | |||||
* | Add test case checking aliasing of the result with other arguments | tb | 2023-10-19 | 1 | -1/+105 |
| | | | | | These are expected failures for BN_mod_exp_simple() and the internal BN_mod_exp_recp(), which will be fixed shortly. | ||||
* | Add regress coverage for -1 modulus as well. | tb | 2023-05-09 | 1 | -25/+38 |
| | |||||
* | Remove a couple of temporary hacks | tb | 2023-04-25 | 1 | -4/+1 |
| | |||||
* | bn_mod_exp: temporarily add a prototype for BN_mod_exp_recp() | tb | 2023-04-25 | 1 | -1/+4 |
| | |||||
* | Check and assign on one line | tb | 2023-04-06 | 1 | -3/+2 |
| | |||||
* | Rework test failure printing | tb | 2023-03-29 | 1 | -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 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 | 1 | -3/+3 |
| | |||||
* | Fold the small BN_mod_exp2_mont() crash test into bn_mod_exp.c | tb | 2023-03-26 | 1 | -1/+26 |
| | |||||
* | 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 |
| | |||||
* | 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_mod_exp_ret() fix stupid logic error | tb | 2023-03-26 | 1 | -4/+5 |
| | |||||
* | 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 | 1 | -0/+387 |
| | |||||
* | Retire the bn_mod_exp test. | tb | 2023-03-18 | 1 | -219/+0 |
| | | | | Its is fully covered by bn_mod_exp_zero now. | ||||
* | Include tests with negative values in BN_mod_exp* regress. | jsing | 2023-03-15 | 1 | -2/+15 |
| | | | | This currently fails. | ||||
* | bn_mod_exp test: drop extra parentheses for readability | tb | 2022-12-08 | 1 | -4/+4 |
| | |||||
* | bn_mod_exp.c doesn't need <string.h> | tb | 2022-12-05 | 1 | -2/+1 |
| | |||||
* | More cleanup | tb | 2022-12-03 | 1 | -11/+8 |
| | | | | | Drop unnecessary loading of error strings, fix error path and consistently print to stdout. | ||||
* | Refactor and fix bn_mod_exp test | tb | 2022-12-03 | 1 | -80/+86 |
| | | | | | | | | | | | 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. | ||||
* | Add missing checks for BN_mod_exp_{non,}ct() | tb | 2022-12-03 | 1 | -6/+8 |
| | | | | | | Someone added a few more functions to test, but forgot to check their results, so if they would not do the expected thing that would only be noticed if one of the already tested functions would break. | ||||
* | Fix some ancient silliness with a random byte | tb | 2022-12-03 | 1 | -8/+5 |
| | | | | | | | For nearly 25 years this test has attempted to generate random numbers of bit length between 192 and 319 bits. Unfortunately, it used an unsigned char so instead of generating numbers in the interval [-64..63] and add them to 256, it used numbers in the intervals [0..63] and [192..255]... | ||||
* | bn_mod_exp.c: printing to stdout needs no BIO | tb | 2022-12-02 | 1 | -17/+9 |
| | |||||
* | bn_mod_exp: we have a BN_CTX available... | tb | 2022-12-02 | 1 | -19/+15 |
| | | | | Use BN_CTX_get() instead of BN_new()/BN_free(). | ||||
* | Check BN_rand() and BN_mod() return values | tb | 2022-12-02 | 1 | -6/+11 |
| | | | | | CID 430848 CID 430849 | ||||
* | Rewrite the tests that various modular exponentiation functions | tb | 2022-12-02 | 1 | -148/+2 |
| | | | | compute a^0 = 0 (mod 1) for all a from scratch. | ||||
* | regress/libcrypto: merge exp/ into bn/ | tb | 2022-12-01 | 1 | -0/+358 |
Move exp/exptest.c to bn/bn_mod_exp.c. This is a BN test that mostly tests a variety of BN_mod_exp*() API behavior and correctness. Commit stolen from jsing |