Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ec_asn1_test: Prepare for upcoming bump | tb | 9 days | 2 | -8/+11 |
| | | | | | Linking statically, pull in ec_local.h and provide a prototype for EC_GROUP_new(), which will be removed from the public API. | ||||
* | Remove pointless call to EC_GROUP_precompute_mul() | tb | 2025-01-24 | 1 | -3/+1 |
| | |||||
* | ectest: zap stray whitespace | tb | 2025-01-22 | 1 | -2/+2 |
| | |||||
* | ectest: fix misleading indentation | tb | 2025-01-22 | 1 | -5/+7 |
| | |||||
* | ectest: remove unused defines | tb | 2025-01-22 | 1 | -5/+1 |
| | |||||
* | ectest: even more lipstick | tb | 2025-01-22 | 1 | -17/+15 |
| | |||||
* | ectest: apply some more lipstick | tb | 2025-01-22 | 1 | -8/+3 |
| | |||||
* | ectest: switch from new + copy to dup. zap some NULL checks before free | tb | 2025-01-22 | 1 | -42/+15 |
| | |||||
* | Ensure the cyclic subgroup cycles in the expected number of iterations. | jsing | 2025-01-22 | 1 | -9/+14 |
| | | | | Also print the iteration number and fix some indentation. | ||||
* | ectest: heed long forgotten XXX and switch back to BN_one() | tb | 2025-01-22 | 1 | -3/+2 |
| | |||||
* | ec/Makefile: remove excess tabs | tb | 2025-01-21 | 1 | -9/+9 |
| | |||||
* | An -> The | tb | 2025-01-06 | 1 | -2/+2 |
| | | | | | There's only one inverse and in standard affine coordinates it only has one representation. | ||||
* | Print the inverse in affine coordinates | tb | 2025-01-06 | 1 | -8/+3 |
| | | | | | This way we can get rid of the stupidity that is publicly exposed Jprojective coordinates soon. | ||||
* | Remove already disabled tests for elliptic curves of small order | tb | 2024-12-24 | 1 | -642/+1 |
| | |||||
* | Disable regression tests for small builtin curves | tb | 2024-11-24 | 1 | -1/+7 |
| | |||||
* | ec_asn1_test: remove extra parens | tb | 2024-11-08 | 1 | -4/+4 |
| | |||||
* | ec_asn1_test: remove debug leftover that broke the build on Windows | tb | 2024-11-05 | 1 | -3/+1 |
| | |||||
* | ec tests: allow linking against eopenssl | tb | 2024-11-04 | 2 | -3/+16 |
| | |||||
* | ec_asn1_test: I somehow managed to commit the version without freezero... | tb | 2024-11-02 | 1 | -3/+4 |
| | |||||
* | ec_asn1_test: set compressed coordinates for the "simple" generator | tb | 2024-11-01 | 1 | -3/+3 |
| | |||||
* | Also exercise the "simple" version of the builtin curves, not only "mont" | tb | 2024-11-01 | 1 | -27/+124 |
| | |||||
* | 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 |
| | |||||
* | {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. | ||||
* | CRYPTO_mem_leaks* will go away. Remove calls in legacy tests | tb | 2024-02-29 | 1 | -2/+1 |
| | |||||
* | ec_point_conversion: zap an empty line | tb | 2024-01-18 | 1 | -2/+1 |
| | |||||
* | Unifdef OPENSSL_NO_ENGINE in libcrypto regress | tb | 2023-11-19 | 1 | -7/+1 |
| | |||||
* | Remove unused prototype | tb | 2023-08-01 | 1 | -3/+1 |
| | |||||
* | Remove comment containing an outdated path | tb | 2023-07-26 | 1 | -2/+1 |
| | |||||
* | Fix EC_POINT_is_on_curve() checks. | tb | 2023-07-24 | 1 | -9/+9 |
| | | | | If not even the idiot who invented this API gets this right... |