| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
This is a hack needed until bn_local.h is updated
|
| |
|
|
|
|
| |
The code they test will go away soon.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This is not only simpler but also required by an upcoming change.
|
| |
|
|
|
|
| |
in the entire code base it also has a few parentheses too many
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
In bn_test.c include bn_local.h instead of using copy-pasted prototypes.
|
|
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
|