summaryrefslogtreecommitdiff
path: root/regress/lib
AgeCommit message (Collapse)Author
2023-04-18ectest: unifdef OPENSSL_NO_EC2MTheo Buehler
2023-04-17Skip binary curves in ec_point_conversionTheo Buehler
2023-04-17Switch all ec tests to using dynamic linkingTheo Buehler
This only requires very minor changes and simplifies testing quite a bit. Some of the changes can be undone after the next bump.
2023-04-17Simplify MakefileTheo Buehler
2023-04-17Drop GF2m testsTheo Buehler
The code they test will go away soon.
2023-04-17Allow overriding the bc implementation used in run-bcTheo Buehler
While base bc is great, it uses libcrypto's BIGNUM implementation. This implies that the independent verification of the bn_test isn't as independent as it should be. With this commit, run-bc picks up bn-gh if it is installed. This appears to work on amd64, arm64 and sparc64 (where gbc is busted). I will send PRs to the regress maintainers once I will have tested this a bit more thoroughly. Committing this early since I juggle way too many diffs already.
2023-04-17Fix typoTheo Buehler
2023-04-17Skip sect* curve checksTheo Buehler
GF2m curves will go away soon. This reduces the pile of diffs in my jungle a tiny little bit.
2023-04-15ec_point_conversion: do not rely on ec.h pulling in bn.hTheo Buehler
2023-04-15ssltest: Drop more policy go from this test.Theo Buehler
Hopefully that is all. What an absolutely horrid mess.
2023-04-15ssltest: initial pass of dropping proxy cert gooTheo Buehler
2023-04-15symbols test: drop LIBRESSL_INTERNALTheo Buehler
This tests the external API, so it should not have visibility to the inside. Silences two warnings since EC_{GROUP,POINT}_clear_free() are now wrapped in #ifndef LIBRESSL_INTERNAL.
2023-04-14cttest: plug leak due to missing SCT_LIST_free()Theo Buehler
2023-04-14Plug a memleak caused by an extra bump of a refcountTheo Buehler
SSL_set_session() should really be called SSL_set1_session()...
2023-04-14Cast the uint64_t SCT timestamps to (unsigned long long) for printing.Theo Buehler
What a wonderful choice between this and that PRI ugliness...
2023-04-14Make the signertest work better with the portable test frameworkTheo Buehler
2023-04-14Make the apitest work better with the portable tets frameworkTheo Buehler
2023-04-14Make cttest work better with the portable test harnessTheo Buehler
2023-04-14Fix cttest to use public headerTheo Buehler
2023-04-13Fix compilation on sparc64.Moritz Buhl
2023-04-13ectest: missing error checkingTheo Buehler
CID 452228
2023-04-11bn_mod_sqrt: remove no longer necessary complications due to theTheo Buehler
non-deterministic nature of the old implementation.
2023-04-11Correct benchmark result computation on 32 bit platforms.Joel Sing
2023-04-10Some more cleanup in bn_to_stringTheo Buehler
2023-04-10Drop BN_NO_DEPRECATED dance from bn_testTheo Buehler
2023-04-10Provide benchmarks for BN_copy()Joel Sing
2023-04-10bn_to_string no longer needs to be linked staticallyTheo Buehler
2023-04-10Rework the bn_to_string() to use public APITheo Buehler
We can use the undocumented functions {i2s,s2i}_ASN1_INTEGER(3) to exercise bn_to_string(). This way we use public API and remove the need of linking statically.
2023-04-08bn_test: two minor style tweaksTheo Buehler
2023-04-07bn_test: rename rc into ret as per usualTheo Buehler
2023-04-07bn_test: pass BN_CTX into all functionsTheo Buehler
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.
2023-04-07bn_test: drop a few braces that are now unnecessaryTheo Buehler
2023-04-07bn_test: move rc initialization to its own lineTheo Buehler
2023-04-07bn_test: keep the error stack cleanTheo Buehler
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.
2023-04-07bn_test: use bn_copy() instead of BN_free/BN_dupTheo Buehler
This is not only simpler but also required by an upcoming change.
2023-04-07bn_test: a few early return would leak. goto err insteadTheo Buehler
2023-04-07bn_test: rand_neg() is not only one of the most stupidly named functionsTheo Buehler
in the entire code base it also has a few parentheses too many
2023-04-07bn_test: handle rc consistentlyTheo Buehler
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
2023-04-07bn_test: inline the only use of lst[]Theo Buehler
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.
2023-04-07Improve some test failure reportingTheo Buehler
2023-04-07Ignore ten getter and setter control macros related to proxy BIOs.Ingo Schwarze
Those are not useful because such a BIO type neither exists in LibreSSL nor in OpenSSL 1.1.1. Not adding the deprecation notice to some manual page because there is no manual page that is even vaguely related.
2023-04-07Two minor tweaks that are useful for processing bio.h, among other headers:Ingo Schwarze
* ignore lines defining "__bounded__()" * ignore whitespace between "#" and "include"
2023-04-06Move a comment to the proper placeTheo Buehler
2023-04-06wycheproof: fix copy-paste error in previousTheo Buehler
2023-04-06wycheproof: use EVP_MD instead of importing "hash"Theo Buehler
2023-04-06Check and assign on one lineTheo Buehler
2023-04-06Zap extra empty lineTheo Buehler
2023-04-05bn_mod_sqrt: Improve a handful of comments and a printfTheo Buehler
2023-04-05Improve regress coverage for BN_mod_sqrt()Theo Buehler
This now covers all the main branches of both the old and new BN_mod_sqrt() implementation except for negative p.
2023-04-05Simplify mod_sqrt_test() a bitTheo Buehler