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 |
| | |||||
* | More whitespace fixes. | jsing | 2023-03-29 | 1 | -51/+51 |
| | | | | | | Another set of mechnical replacements for "a,b" with "a, b". No change in generated assembly. | ||||
* | Whitespace fixes. | jsing | 2023-03-29 | 1 | -133/+133 |
| | | | | | | Mechanically replace "a,b" with "a, b". No change to generated assembly. | ||||
* | Whitespace fixes. | jsing | 2023-03-29 | 1 | -68/+68 |
| | | | | | | | Mechanically replace "a,b" with "a, b", followed with some manual indentation clean up. No change in generated assembly. | ||||
* | Use multiple statements instead of a statement with multiple expressions. | jsing | 2023-03-29 | 1 | -4/+5 |
| | | | | No change in generated assembly. | ||||
* | Mop up MD32_XARRAY from SHA1. | jsing | 2023-03-29 | 1 | -162/+135 |
| | | | | | | | | | MD32_XARRAY (formerly SHA_XARRAY) was added as a workaround for a broken HP C compiler (circa 1999). Clean it up to simplify the code. No change in generated assembly. ok miod@ tb@ | ||||
* | Inline initial hash data values for SHA1. | jsing | 2023-03-29 | 1 | -13/+9 |
| | | | | | | This follows what is done for other SHA implementations. ok miod@ tb@ | ||||
* | Reorder functions/code. | jsing | 2023-03-27 | 1 | -238/+238 |
| | | | | No intended functional change. | ||||
* | Replace the remaining BN_copy() with bn_copy() | tb | 2023-03-27 | 19 | -116/+116 |
| | | | | ok jsing | ||||
* | Convert BN_copy() with missing error checks to bn_copy() | tb | 2023-03-27 | 4 | -11/+18 |
| | | | | ok jsing | ||||
* | Convert BN_copy() with explicit comparison against NULL to bn_copy() | tb | 2023-03-27 | 7 | -25/+25 |
| | | | | ok jsing | ||||
* | Use bn_copy() rather than inlining it | tb | 2023-03-27 | 1 | -2/+2 |
| | | | | ok jsing | ||||
* | Tidy includes. | jsing | 2023-03-27 | 1 | -5/+4 |
| | |||||
* | Avoid errno is EINVAL after OpenSSL initialization | jan | 2023-03-27 | 1 | -1/+5 |
| | | | | ok tb@ | ||||
* | 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 |
| | |||||
* | Drop unnecessary parentheses. | tb | 2023-03-27 | 1 | -3/+3 |
| | | | | ok jsing | ||||
* | Convert bn_nist.c to BN_copy() | tb | 2023-03-27 | 1 | -6/+6 |
| | | | | | | | Like everything else in this file, the use of BN_copy() needs to be ... special. Simplify using the new bn_copy(). ok jsing | ||||
* | Add bn_copy(), a sane wrapper of BN_copy() for internal use | tb | 2023-03-27 | 2 | -2/+10 |
| | | | | ok jsing | ||||
* | 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 |
| | |||||
* | Replace HASH_BLOCK_DATA_ORDER with sha1_block_data_order. | jsing | 2023-03-26 | 1 | -4/+4 |
| | | | | | The only reason to use HASH_BLOCK_DATA_ORDER in the implementation is to make the code harder to read. | ||||
* | Remove unnecessary HIDDEN_DECLS. | jsing | 2023-03-26 | 1 | -6/+1 |
| | |||||
* | Removes some unwanted spaces. | jsing | 2023-03-26 | 1 | -7/+7 |
| | |||||
* | Whack sha1dgst.c with the style(9) stick again. | jsing | 2023-03-26 | 1 | -193/+246 |
| | |||||
* | Add regress coverage for some BIO_f_asn1() bugs fixed before release | tb | 2023-03-26 | 2 | -1/+176 |
| | |||||
* | Minor whitespace tidying | tb | 2023-03-26 | 2 | -6/+7 |
| | |||||
* | Tidy up includes. | jsing | 2023-03-26 | 1 | -9/+5 |
| | |||||
* | Inline sha_local.h in sha1dgst.c. | jsing | 2023-03-26 | 1 | -3/+360 |
| | | | | | Nothing other than sha1dst.c uses this header - pull it in to sha1dgst.c directly (sha_local.h will be removed at a later date). | ||||
* | 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 |
| | |||||
* | Make several calls to BN_nnmod() unconditional | tb | 2023-03-26 | 1 | -19/+10 |
| | | | | | | | | This removes a potential branch in a sensitive function and makes the code a lot simpler. It is a really bad idea optimize here for what davidben aptly calls "calculator" purposes. ok jsing | ||||
* | Correctly reduce negative inpot to BN_mod_exp2_mont() | tb | 2023-03-26 | 1 | -3/+3 |
| | | | | | | | | | | Negative bases could result in a negative modulus being returned. This is not strictly speaking incorrect but slightly surprising. This is all a consequence of the shortcut of defining BN_mod() as a macro using BN_div(). Fixes ossfuzz #55997 ok jsing | ||||
* | 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. | ||||
* | Add license to sha256.c/sha512.c. | jsing | 2023-03-26 | 2 | -6/+100 |
| | |||||
* | Use multiple statements instead of comma separated expressions. | jsing | 2023-03-26 | 1 | -24/+33 |
| | | | | No change to generated assembly. | ||||
* | Add blank lines for readability. | jsing | 2023-03-26 | 1 | -1/+4 |
| | |||||
* | Add some blank lines for readability, along with some more style(9) tweaks. | jsing | 2023-03-26 | 2 | -7/+24 |
| |