Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Split ec_key_test_point_encoding() into chunks of saner size | tb | 2024-10-29 | 1 | -49/+172 | |
| | ||||||
* | ec_asn1_test: point doubling is fine, the leak is elsewhere | tb | 2024-10-29 | 1 | -3/+1 | |
| | | | | (will be fixed shortly). | |||||
* | Disable point doubling for now, it leaks due to a doc bug. | tb | 2024-10-29 | 1 | -1/+3 | |
| | | | | | Can't replace it with adding the point to itself since that also leaks (another doc bug). Who would've thought. | |||||
* | unifdef -m -DCORRECT_PRIV_KEY_PADDING=1 ec_asn1_test.c | tb | 2024-10-28 | 1 | -9/+1 | |
| | ||||||
* | Enable the tests that depend on correct private key padding | tb | 2024-10-28 | 1 | -2/+2 | |
| | ||||||
* | c2sp: run test against openssl/3.4 if it is installed | tb | 2024-10-28 | 1 | -2/+2 | |
| | ||||||
* | {d2i,i2d}_ECParameters() also want a bit of exercising | tb | 2024-10-26 | 1 | -1/+28 | |
| | ||||||
* | ec_asn1_test: play some silly games to cover a few more code paths | tb | 2024-10-26 | 1 | -1/+47 | |
| | ||||||
* | Add regress coverage for ec_print.c | tb | 2024-10-26 | 1 | -2/+889 | |
| | | | | | | | | | | | | | | | | | Of course the four stunning beauties in there aren't printing anything. the hex family converts an elliptic curve point's X9.62 encoding into a hex string (which kind of makes sense, you can print that if you want). Much more astounding is EC_POINT_point2bn() where the X9.62 octet string is interpreted as a BIGNUM. Yes, the bignum's hex digits are the point conversion form followed by the affine coordinate(s) of the elliptic curve point, and yes you can choose between compressed, uncompressed, and hybrid encoding, why do you ask? This doesn't really make any sense whatsoever but of course you can also print that if you really want to. Of course the beloved platinum members of the "gotta try every terrible OpenSSL interface" club had to use and expose this. | |||||
* | Use macros describing the intent rather than #if 0 | tb | 2024-10-25 | 1 | -8/+38 | |
| | ||||||
* | Add regress for {d2i,i2d}_ECPrivateKey() and {o2i,i2o}_ECPublicKey() | tb | 2024-10-25 | 1 | -1/+1003 | |
| | | | | Some test cases are disabled since they exercise an upcoming bug fix. | |||||
* | ec_point_conversion: cosmetics | tb | 2024-10-23 | 1 | -4/+4 | |
| | ||||||
* | ec_point_conversion: extend test coverage by translating back the | tb | 2024-10-23 | 1 | -2/+76 | |
| | | | | | | point to an octet string and match with the initial octet string. would have caught the regression found by anton | |||||
* | ec_asn1_test: simplify previous | tb | 2024-10-18 | 1 | -7/+4 | |
| | ||||||
* | ec_asn1_test: call EC_GROUP_check() for the builtin curves | tb | 2024-10-18 | 2 | -59/+13 | |
| | | | | | This makes the internal curve test in ectest.c superfluous. Also fix a logic error. | |||||
* | ec_asn1_test: adjust for rejection of non-builtin curve parameters | tb | 2024-10-18 | 1 | -14/+2 | |
| | ||||||
* | ec_asn1_test: add secp256k1.m | tb | 2024-10-18 | 1 | -10/+81 | |
| | ||||||
* | ec_asn1_test: remove last hardcoded wei25519 remnant | tb | 2024-10-18 | 1 | -4/+3 | |
| | ||||||
* | ec_asn1_test: test Wei25519.2 and Wei25519.-3 as well | tb | 2024-10-18 | 1 | -37/+163 | |
| | | | | Covers a few more corner cases in the elliptic curve code. | |||||
* | ec_asn1_test: clean up & refactor; test Wei25519 with simple method | tb | 2024-10-18 | 1 | -109/+189 | |
| | ||||||
* | EC ASN.1: add reminder that the simple method might also want testing | tb | 2024-10-16 | 1 | -1/+5 | |
| | ||||||
* | Implement Wei25519 to exercise some more elliptic curve code | tb | 2024-10-16 | 1 | -1/+284 | |
| | | | | | | | | This provides a non-trivial non-builtin curve that is unlikely to ever become a builtin curve. This exercises the cofactor guessing code and and ensures that things work as far as they can with a custom OID. The main reason for adding it is to have a "real-world" example for an upcoming check that EC parameters represent a builtin curve. | |||||
* | Extend ec_asn1_test to check for correct curve coefficient encoding | tb | 2024-10-14 | 1 | -5/+50 | |
| | ||||||
* | Exercise the EC parameters code a bit more | tb | 2024-10-12 | 1 | -1/+103 | |
| | | | | | | Ensure all builtin curves can be roundtripped through DER as named curves, via explicit parameterization, using uncompressed, compressed and hybrid point formats. | |||||
* | Add error regress coverage for ERR_LIB_SYS. | jsing | 2024-10-11 | 1 | -1/+19 | |
| | | | | These are dynamically populated based on strerror() values. | |||||
* | Hook up the err regress. | jsing | 2024-10-02 | 1 | -1/+2 | |
| | ||||||
* | Add initial regress for the error stack and ERR_* APIs. | jsing | 2024-10-02 | 2 | -0/+210 | |
| | ||||||
* | Enable additional CRYPTO_get_ex_new_index() tests. | jsing | 2024-10-02 | 1 | -6/+1 | |
| | | | | | | | It was previously possible to call CRYPTO_get_ex_new_index() with either a negative index or a positive index that equaled or exceeded CRYPTO_EX_INDEX__COUNT. The reimplementation of exdata treats these as error cases. | |||||
* | Replace OpenSSL 3.1 (which no longer is in ports) with 3.3 | tb | 2024-09-17 | 1 | -2/+2 | |
| | ||||||
* | symbols: remove special case for cpuid_setup and cpu_caps | tb | 2024-09-01 | 1 | -8/+1 | |
| | | | | The former is gone and the latter is available in crypto.h. | |||||
* | Retire the whirlpool test | tb | 2024-08-31 | 2 | -251/+0 | |
| | ||||||
* | unhook whirlpool from the tree | tb | 2024-08-31 | 1 | -2/+1 | |
| | ||||||
* | Adjust freenull test for upcoming conf_api.h removal | tb | 2024-08-30 | 2 | -5/+2 | |
| | ||||||
* | Remove evp_pkey_check test | tb | 2024-08-29 | 2 | -399/+1 | |
| | | | | The API it tests will be removed shortly | |||||
* | Remove unwanted trailing newlines from err/warn format strings. | anton | 2024-08-23 | 7 | -17/+17 | |
| | ||||||
* | Add include path for crypto_arch.h. | jsing | 2024-08-11 | 1 | -1/+2 | |
| | ||||||
* | check_complete: accept #error | tb | 2024-08-08 | 1 | -0/+1 | |
| | ||||||
* | check_complete: OBJ_bsearch_() and OBJ_bsearch_ex_() are gone | tb | 2024-08-08 | 1 | -3/+0 | |
| | ||||||
* | hmac test: fix build with gcc | tb | 2024-08-08 | 1 | -2/+8 | |
| | | | | | | | The bounded attribute leads to failing regress compilation with gcc due to a test passing a negative length to exercise a chck. noticed and fixed suggested by claudio | |||||
* | adjust check_complete after recent-ish API and docs changes | tb | 2024-08-07 | 1 | -11/+2 | |
| | ||||||
* | asn1time: indicate which comparison function failed | tb | 2024-07-21 | 1 | -4/+7 | |
| | | | | extracted from a diff by Kenjiro Nakayama | |||||
* | Teach symbols test about the namespace | tb | 2024-07-10 | 2 | -3/+9 | |
| | | | | | | This ensures that when adding public symbols, the magic is not omitted. with/ok beck | |||||
* | Improve test coverage for TLS1-PRF | tb | 2024-07-09 | 1 | -4/+177 | |
| | | | | | | This is basically a copy of the libssl unit tests, moved to libcrypto to avoid starting the infection of libssl with this particular piece of EVP garbage. | |||||
* | Add a minimal regress test for TLS1-PRF | tb | 2024-07-09 | 1 | -1/+96 | |
| | ||||||
* | Add regress coverage for X509V3_get_d2i() | tb | 2024-06-17 | 1 | -1/+265 | |
| | ||||||
* | zap a stray space | tb | 2024-06-16 | 1 | -2/+2 | |
| | ||||||
* | Adjust hmac test for removal of static buffer from HMAC() | tb | 2024-05-30 | 1 | -2/+2 | |
| | ||||||
* | asn1object: zap trailing whitespace | tb | 2024-05-29 | 1 | -3/+3 | |
| | ||||||
* | Make it possible for the large OID test to fail | tb | 2024-05-29 | 1 | -3/+3 | |
| | | | | | | failed was set to 0 at the top of the function, so failure and success were indistinguishable. Move failed = 0 to the end so it can actually fail. | |||||
* | Add regress coverage for some corner cases of i2d_ASN1_OBJECT() | tb | 2024-05-29 | 1 | -1/+40 | |
| |