summaryrefslogtreecommitdiff
path: root/src/regress (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-01-18Drop field determination dancetb1-9/+2
If we get here, we're in a server and have managed to load the cert. The public key is therefore a point on a built-in curve, and we know the group is defined over some prime field. Now it is just a matter of figuring out whether we support the group in libssl. ok jsing
2025-01-18Stop pretending we support arbirary explicit groupstb1-3/+2
ok jsing
2025-01-18Remove SSL_DES and SSL_IDEA remnantstb2-6/+2
ok jsing
2025-01-18SSL_CTX_set_cipher_list: stop mentioning ancient cipherstb1-11/+1
Support was removed nearly a decade ago. No need to mention this anymore. ok jsing
2025-01-18Remove last uses of SSL_aDSStb2-14/+2
ok jsing
2025-01-18ssl_seclevel: remove comment pertaining to DSA certstb1-6/+1
ok jsing
2025-01-18Stop mentioning DSA/DSStb6-23/+16
Support for this went away in 2017, but a few things still mentioned DSA in various contexts. Replace DSA with ECDSA where appropriate and otherwise delete this. It won't work. ok jsing
2025-01-18Use name instead of register.jsing1-3/+3
2025-01-17ssl_local.h: does not need to include dsa.htb1-2/+1
2025-01-17rsa_pmeth: unify strcmp return checkstb1-12/+10
ok jsing
2025-01-17Replace the remaining group->meth->field_{mul,sqr}tb1-13/+13
These somehow escaped a prior pass.
2025-01-17ecp_methods: remove p = group->p indirectiontb1-37/+34
This helped a bit with readability when we needed to do &group->p, but now that's no longer needed. discussed with jsing
2025-01-17ecp_methods: rework field_{mul,sqr}() handlingtb1-93/+83
Add wrapper functions that call the methods so that we can get rid of inconsistent use of ugly function pointers with massively overlong lines and other ways of reaching into the methods. ok jsing
2025-01-17Fix two incorrect strtonum() conversionstb1-3/+13
The atoi() would also accept the magic negative values and old openssl releases would expose these as arguments to -pkeyopt rsa_pss_saltlen:-1 in the openssl pkeyutl "app". While modern openssl switched to having readable alternatives to these, the oseid component of opensc would use the old syntax until yesterday. Still, this is our bug and we need to keep accepting the magic values as such, so do so. Everything below -3 will be rejected by the RSA_ctrl() handler later. Debugged by Doug Engert in https://github.com/OpenSC/OpenSC/issues/3317 ok jsing op
2025-01-17dh_ameth: explcitly -> explicitlytb1-2/+2
2025-01-17asn_mime: deteched -> detached + a knf nittb1-2/+3
2025-01-15Interop tests for openssl 3.3 and 3.4, retire 3.2, 1.1 (and 3.1 remnants)tb12-191/+130
OpenSSL 1.1 and 3.2 will be removed from the ports tree, so test the two remaining versions. Unfortunately, this requires a lot more manual massaging than there should be.
2025-01-15Default to eopenssl33 for other_openssl_bintb1-2/+2
OpenSSL 1.1 is dead and will soon be removed from the ports tree. At the same time OpenSSL 3.3 will become the default openssl.
2025-01-11Fix another awful comment in ec_point_cmp()tb1-4/+3
2025-01-11Align vertical backslashes in a macrotb1-2/+2
2025-01-11ec_point_cmp: tidy up an ugly commenttb1-7/+5
2025-01-11ec_key_gen() is unused outside ec_key.c, so make it statictb2-4/+3
2025-01-11Move EC_KEY_METHOD_DYNAMIC next to the two methods using ittb2-4/+4
Only EC_KEY_METHOD_{new,free}() need to know about this flag, so make that more obvious.
2025-01-11Remove a weird commenttb1-5/+1
2025-01-11Rename the is_on_curve() method to point_is_on_curve()tb3-12/+13
Rename ec_is_on_curve() to ec_point_is_on_curve() and ec_cmp() to ec_point_cmp().
2025-01-11Move is_on_curve() and (point) cmp() uptb2-201/+201
These were in the middle of the methods responsible for curve operations, which makes little sense.
2025-01-11Move compressed coordinate setting into public APItb3-108/+83
Now that it is method-agnostic, we can remove the method and move the implementation to the body of the public API function. And another method goes away. We're soon down to the ones we really need. discussed with jsing
2025-01-11Rework ec_point_set_compressed_coordinates()tb1-18/+14
While this is nicely done, it is a bit too clever. We can do the calculation in the normal domain rather than the Montgomery domain and this way the method becomes method agnostic. This will be a bit slower but since a couple of field operations are nothing compared to the cost of BN_mod_sqrt() this isn't a concern. ok jsing
2025-01-11Move ec_points_make_affine() to the right placetb1-135/+135
discussed with jsing
2025-01-11Move the EC_POINTs API into the garbage bintb1-20/+20
2025-01-11Neuter the EC_POINTs_* APItb4-77/+16
EC_POINTs_mul() was only ever used by Ruby and they stopped doing so for LibreSSL when we incorporated the constant time multiplication work of Brumley et al and restricted the length of the points array to 1, making this API effectively useless. The only real reason you want to have an API to calculate \sum n_i P_i is for ECDSA where you want m * G + n * P. Whether something like his needs to be in the public API is doubtful. EC_POINTs_make_affine() is an implementation detail of EC_POINTs_mul(). As such it never really belonged into the public API. ok jsing
2025-01-11Remove a pointless check about Z == 1tb1-7/+1
ok jsing
2025-01-11Inline ec_point_make_affine() in the public APItb3-44/+22
Whatever the EC_METHOD, this will always be equivalent to getting and setting the affine coordinates, so this needs no dedicated method. Also, this is a function that makes no real sense since a caller should never need to care about this... As always, our favorite language bindings thought they might have users who care. This time it's Ruby and Perl. ok jsing
2025-01-11Remove seven pairs of unnecessary parenthesestb1-5/+5
ok millert operator(7)
2025-01-09When describing v3 crypt, be specific as to which machine was simulated.jsg1-3/+3
feedback jmc@ ok deraadt@ schwarze@
2025-01-09ec_lib.c: zap stray empty line at end of filetb1-2/+1
2025-01-09check_discriminant: make the assumptions on p, a, b more explicittb1-2/+3
requested by jsing
2025-01-08Improve order of things in BN_RECP_CTX_set()tb1-3/+4
+ some whitespace cosmetics
2025-01-08Remove parentheses in return statementstb1-8/+8
2025-01-08Add a space after commatb1-3/+3
2025-01-08Remove superfluous parenthesestb1-13/+13
2025-01-08X509_NAME_print() also fails to indenttb1-5/+6
2025-01-07X509_NAME_print: remove lie about multiple lines being usedtb1-4/+2
OpenSSL commit 92ada7cc (2007) removed some dead code with flawed logic attempting to print multiple lines if the line exceeded 80 characters. Said flawed logic was there since the start of the git history importing SSLeay 0.8.1b in 1998 and never worked. Rumor has it that it did work prior to that. Be that as it may, it's just wrongly documented since Henson added the docs in commit 0711be16 (2002). Prompted by OpenSSL issue #18004 by davidben https://github.com/quictls/quictls/pull/168 https://github.com/quictls/quictls/issues/75
2025-01-07Rewrite TS_ASN1_INTEGER_print_bio()tb1-14/+19
This eliminates another stupid BN_free(&bn) and uses BIO_printf() rather than a ludicrously silly result dance. In fact it appears that this dance was so hard to grok that OpenSSL misread it and made this function return the value -1 on ASN1_INTEGER_to_BN() failure, a value that it had never returned before. It doesn't matter anyway. The only uses of this function are internal to OpenSSL's code and since TS fully conforms to OpenSSL's high QA standards, no caller checks the return of TS_ASN1_INTEGER_print_bio(). ok jsing
2025-01-07Remove stale comment about methods and memberstb1-6/+1
2025-01-07Check discriminant directly in EC_GROUP_set_discriminant()tb3-68/+47
After possibly decoding a and b in EC_GROUP_get_curve(), this is a pure calculation in GFp and as such doesn't make use of any method-specifics. Let's perform this calculation directly in the public API implementation rather than redirecting through the methods and remove yet another method handler. ok jsing
2025-01-06unitialized -> uninitializedtb1-2/+2
2025-01-06ec_lib: create a garbage bin at the end, throw Jprojective stuff in theretb1-19/+24
2025-01-06Inline the last two uses of ec_mont_group_clear()tb1-14/+11
2025-01-06typo: slighty -> slightlytb1-2/+2