Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |||||
* | Link new bn_mod_exp_zero test to build | tb | 2022-12-02 | 1 | -1/+3 | |
| | ||||||
* | Rewrite the tests that various modular exponentiation functions | tb | 2022-12-02 | 2 | -148/+189 | |
| | | | | compute a^0 = 0 (mod 1) for all a from scratch. | |||||
* | libcrypto/bn: switch back to manual regress targets | tb | 2022-12-02 | 1 | -3/+8 | |
| | | | | | The previous change had the undesired side effect of running the super verbose run-regress-bn_test. | |||||
* | Use the default targets from bsd.regress.mk as far as possible | tb | 2022-12-02 | 1 | -9/+4 | |
| | ||||||
* | bn_add_sub: no need for a BIO to print to stderr | tb | 2022-12-02 | 1 | -21/+13 | |
| | ||||||
* | Fix typo, move one .PHONY target nearer to the target itself | tb | 2022-12-01 | 1 | -4/+3 | |
| | ||||||
* | zap extra blank line | tb | 2022-12-01 | 1 | -2/+1 | |
| | ||||||
* | Check that the bn_isqrt -C output isn't changed | tb | 2022-12-01 | 2 | -1/+43 | |
| | | | | | | bn_isqrt -C generates code included in lib/libcrypto/lib/bn_isqrt.c. The regress tests already ensure that the content of the tables don't change. Ensure further that the code generation doesn't get out of sync. | |||||
* | regress/libcrypto: merge exp/ into bn/ | tb | 2022-12-01 | 2 | -1/+361 | |
| | | | | | | | 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 | |||||
* | Flatten structure of libcrypto/bn tests | tb | 2022-12-01 | 15 | -116/+62 | |
| | | | | | | | | | 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 | |||||
* | Test prime constants exposed in public BN API | tb | 2022-12-01 | 1 | -1/+97 | |
| | | | | | Run the prime constants exposed in BN_get0_nist_prime_*() and BN_get_rfc3526_prime_*() through Ballie-PSW. | |||||
* | Refrain from printing SUCCESS in some of my tests | tb | 2022-12-01 | 7 | -26/+7 | |
| | | | | Silence is good. On failure, the regress framework will make it clear. | |||||
* | Add regress coverage for BN_cmp()/BN_ucmp(). | jsing | 2022-11-30 | 2 | -3/+347 | |
| | | | | | Some tests current fail due to a bug in BN_ucmp(), which will be fixed soon. | |||||
* | Make internal header file names consistent | tb | 2022-11-26 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names used for internal headers. Move all these headers we inherited from OpenSSL to *_local.h, reserving the name *_internal.h for our own code. Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h. constant_time_locl.h is moved to constant_time.h since it's special. Adjust all .c files in libcrypto, libssl and regress. The diff is mechanical with the exception of tls13_quic.c, where #include <ssl_locl.h> was fixed manually. discussed with jsing, no objection bcook | |||||
* | Units generally help... | tb | 2022-11-25 | 1 | -2/+2 | |
| | ||||||
* | bn_unit: appease coverity | tb | 2022-11-23 | 1 | -2/+6 | |
| | | | | | | | Apparently, the '0' in memset(a, '0', size - 1); could be a typo for '\0'. Randomize the decimal digit to make the intent clear. CID 377009 | |||||
* | Neuter getrlimit dance, it's not portable enough. Stupid Windows. | tb | 2022-11-23 | 1 | -14/+4 | |
| | ||||||
* | Tweak a printf. | tb | 2022-11-22 | 1 | -3/+3 | |
| | ||||||
* | Add a unit test that crashes without bn_print.c r1.34. | tb | 2022-11-22 | 2 | -1/+95 | |
| | ||||||
* | Remove prime_t remnant and link bn_primes test statically | tb | 2022-11-09 | 2 | -3/+4 | |
| | ||||||
* | Handle corner case in which the test case can actually be a square | tb | 2022-10-11 | 1 | -4/+3 | |
| | ||||||
* | Convert from %i to %d | tb | 2022-09-05 | 1 | -2/+2 | |
| | ||||||
* | Fix upper bound in a for loop (no functional change). | tb | 2022-08-12 | 1 | -2/+2 | |
| | ||||||
* | Tweak a comment to be more accurate. | tb | 2022-08-12 | 1 | -3/+3 | |
| | ||||||
* | Add a second test to validate the tables in the library. | tb | 2022-07-28 | 1 | -1/+42 | |
| | ||||||
* | Adjust a comment to reflect reality, minor code tweaks. | tb | 2022-07-27 | 1 | -7/+7 | |
| | ||||||
* | minor tweaks: unwrap a line, tweak a comment and zap an empty line | tb | 2022-07-26 | 1 | -5/+3 | |
| | ||||||
* | Add a regression test for bn_isqrt.c | tb | 2022-07-25 | 2 | -1/+302 | |
| | | | | | This validates the tables used in bn_is_perfect_square() and checks that for randomly generated numbers the isqrt() is what it is expected to be. | |||||
* | Use dynamic linking correctly. bntest and bn_to_string need static linking. | tb | 2022-06-23 | 1 | -3/+5 | |
| | ||||||
* | Use uppercase for SUCCESS for consistency | tb | 2022-06-19 | 1 | -2/+2 | |
| | ||||||
* | None of these tests needs to link statically. | tb | 2022-06-19 | 2 | -4/+4 | |
| | ||||||
* | Quick regression test that checks that BN_is_prime_fasttest_ex() | tb | 2022-06-18 | 2 | -1/+97 | |
| | | | | | recognizes the primes in the primes[] table with and without trial division. Would have caught the bug fixed in bn_primes.c r1.9. | |||||
* | Fix dependency to build bn_mod_sqrt. | bluhm | 2022-03-16 | 1 | -2/+2 | |
| | ||||||
* | Add a simple regress to verify that the infinite loop in BN_mod_sqrt() | tb | 2022-03-15 | 2 | -1/+138 | |
| | | | | is fixed. | |||||
* | Simple regress for NULL deref reported by Guido Vranken and fixed in | tb | 2022-03-10 | 2 | -1/+51 | |
| | | | | bn_exp2.c r1.13. | |||||
* | Simplify BN_mont test slightly using a new accessor. | tb | 2022-01-14 | 1 | -4/+2 | |
| | ||||||
* | Remove redundant NULL checks | tb | 2021-12-29 | 1 | -3/+1 | |
| | | | | CID 345154 | |||||
* | make the bn/mont test compile with opaque DH. | tb | 2021-11-26 | 1 | -4/+12 | |
| | ||||||
* | Resolve last issue with opaque BIGNUM in this test. | tb | 2021-11-25 | 1 | -3/+3 | |
| | ||||||
* | bntest: Fix all but one test in this file to work with opaque BN. | tb | 2021-11-18 | 1 | -399/+563 | |
| | | | | | The remaining test needs some thinking (or disabling once we flip the switch). It is currently marked with an XXX. | |||||
* | use errx() instead of err() | tb | 2021-04-06 | 1 | -8/+8 | |
| | ||||||
* | Explicitly NULL pointers to avoid a double free. | tb | 2021-04-04 | 1 | -1/+3 | |
| | ||||||
* | Don't leak key and dh in the error path. | tb | 2021-04-04 | 1 | -4/+7 | |
| | ||||||
* | Remove echo headlines. | bluhm | 2020-12-17 | 1 | -4/+1 | |
| | ||||||
* | Feed the bntest output to bc(1). This checks the result of the big | bluhm | 2019-09-05 | 2 | -13/+16 | |
| | | | | | | num calculations and avoids lots of ugly output to stdout. Remove fflush(3) of stderr, it is unbuffered anyway. with Moritz Buhl | |||||
* | Add a test for the bn_to_string() function introduced in v3_utl.c r1.32. | tb | 2019-04-13 | 2 | -6/+133 | |
| | ||||||
* | fix a leak pointed out by Ben L (bobsayshi () live ! co ! uk) | tb | 2018-11-10 | 1 | -4/+8 | |
| |