Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | recp -> reciprocal renaming in tests | tb | 2025-02-12 | 1 | -5/+5 |
| | |||||
* | bn_test: remove random negative dance for bn_div_reciprocal() | tb | 2025-01-22 | 1 | -3/+1 |
| | |||||
* | Adjust for BN_div_recp() -> BN_div_reciprocal() | tb | 2025-01-22 | 1 | -3/+3 |
| | |||||
* | bn_test: use BN_RECP_CTX_create() rather than _new()/_set() | tb | 2025-01-21 | 1 | -5/+3 |
| | |||||
* | Remove a couple of temporary hacks | tb | 2023-04-25 | 1 | -13/+1 |
| | |||||
* | bn_test: temporarily add prototypes for reciprocal functions | tb | 2023-04-25 | 1 | -1/+13 |
| | | | | This is a hack needed until bn_local.h is updated | ||||
* | bn_test: BN_one() will become void, so stop checking it | tb | 2023-04-25 | 1 | -8/+8 |
| | |||||
* | Drop GF2m tests | tb | 2023-04-17 | 1 | -647/+1 |
| | | | | The code they test will go away soon. | ||||
* | Drop BN_NO_DEPRECATED dance from bn_test | tb | 2023-04-10 | 1 | -7/+1 |
| | |||||
* | bn_test: two minor style tweaks | tb | 2023-04-08 | 1 | -6/+3 |
| | |||||
* | bn_test: rename rc into ret as per usual | tb | 2023-04-07 | 1 | -91/+91 |
| | |||||
* | bn_test: pass BN_CTX into all functions | tb | 2023-04-07 | 1 | -364/+297 |
| | | | | | There is a BN_CTX at program scope. Pass it into all test functions. This simplifies memory management at the end of the functions quite a bit. | ||||
* | bn_test: drop a few braces that are now unnecessary | tb | 2023-04-07 | 1 | -33/+17 |
| | |||||
* | bn_test: move rc initialization to its own line | tb | 2023-04-07 | 1 | -9/+17 |
| | |||||
* | bn_test: keep the error stack clean | tb | 2023-04-07 | 1 | -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_dup | tb | 2023-04-07 | 1 | -3/+2 |
| | | | | This is not only simpler but also required by an upcoming change. | ||||
* | bn_test: a few early return would leak. goto err instead | tb | 2023-04-07 | 1 | -5/+5 |
| | |||||
* | bn_test: rand_neg() is not only one of the most stupidly named functions | tb | 2023-04-07 | 1 | -2/+2 |
| | | | | in the entire code base it also has a few parentheses too many | ||||
* | bn_test: handle rc consistently | tb | 2023-04-07 | 1 | -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[] | tb | 2023-04-07 | 1 | -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. | ||||
* | Switch regress to using bn_copy() | tb | 2023-03-27 | 1 | -10/+10 |
| | |||||
* | Add a few missing headers and drop a few unused ones | tb | 2022-12-06 | 1 | -12/+2 |
| | | | | In bn_test.c include bn_local.h instead of using copy-pasted prototypes. | ||||
* | Flatten structure of libcrypto/bn tests | tb | 2022-12-01 | 1 | -0/+2624 |
The bn tests were distributed into three subdirectories rather randomly. It's cleaner and easier to maintain if all this is in a single directory. Use consistent names for the .c files, unify handling of the tests with the exception of bn_test, which is special. Discussed with jsing |