Repository navigation
feat(libSceLibreSsl3): implement ECDSA_SIG_get0 - #15449
Conversation
✅ AMD GPU test: passedPR head
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (4, not counted against this PR)Validation IDs already present on main (4 IDs in 470 tests)Skipped (6)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
932178e to
bf93f0c
Compare
✅ AMD GPU test: passedPR head
Failing on main too (5, not counted against this PR)Validation IDs already present on main (4 IDs in 552 tests)Skipped (7)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
bf93f0c to
1507baa
Compare
1507baa to
0b8b0a2
Compare
1e1fe21 to
524f3b2
Compare
524f3b2 to
2b5e825
Compare
2b5e825 to
f802986
Compare
f802986 to
b676a97
Compare
b676a97 to
2e3502d
Compare
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
2e3502d to
08876e8
Compare
Port ECDSA_SIG_get0 from LibreSSL 4.0.0 ecdsa.c in a new EcdsaSig.cpp that carries ecdsa.c's copyright and licence notice: each output pointer is optional and r is written before s, as upstream does. A null signature with no outputs does nothing; with an output requested, which upstream dereferences, it throws without writing. The 16-byte ECDSA_SIG layout from ecdsa_local.h is pinned by static_asserts. The additional export inventory is recounted: 140 callable exports, 130 named and 10 known only by NID. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
08876e8 to
773e3bf
Compare
What
Implements the libSceLibreSsl3 export
ECDSA_SIG_get0(NIDz8fsXF8JuL0), which threw throughNotImplemented_nid_no_patch.It is ported from LibreSSL 4.0.0's
ecdsa.c, the revision the library already targets, into a newcore/libs/prx/libSceLibreSsl3/src/EcdsaSig.cpp. The file starts withecdsa.c's copyright and licence notice, copied byte for byte.ris written befores, as upstream does.include/EcdsaSig.hppholds the 16-byteECDSA_SIGlayout fromecdsa_local.h, withrat offset 0 andsat 8, pinned withstatic_asserts.include/Api.hppreplaces the parameterless stub declaration with the typed one.Debt (
docs/dev/debt/libSceLibreSsl3.md):AdditionalExports.cpp: 141 to 140 callable exports, 131 to 130 named, with 10 still known only by NID;ECDSA_SIG_get0was one of the names feat(libSceLibreSsl3): name 116 unknown additional exports from their NIDs #13831 assigned by NID hash. Since feat(libSceLibreSsl3): implement ASN.1 value mutation and octet lifetime #14889 that sentence no longer carries a count, and it stays true after this PR, so it is unchanged.Tested
guest_libressl3_ecdsa_sig(core/libs/prx/libSceLibreSsl3/tests/EcdsaSig.cpp) loads the guest library and calls the export through its NID. It covers:randsfields with every combination of requested outputs, checking that unrequested outputs keep their sentinel and the signature is untouched;s, sinceris written first;main's library (main'sAdditionalExports.cppandApi.hpp, withEcdsaSig.cppemptied) fails withECDSA_SIG_get0 threw: ECDSA_SIG_get0_nid_postfix not implemented.CMakeLists.txt,Api.hppand the debt file, and fixes the commit message), all 11 LibreSSL3 tests pass;main's library fails withECDSA_SIG_get0_nid_postfix not implemented, then passes again once restored;main3c2af82 (after feat(libSceLibreSsl3): implement RSA_get0_factors and RSA_get0_crt_params #14366, feat(libSceLibreSsl): implement EC groups and keys for named curves #10395, feat(libSceLibreSsl3): implement X509 public key parameters #10557, feat(libSceLibreSsl3): implement EVP digest contexts and SHA methods #10960, fix(libSceLibreSsl3): throw the documented d2i fault arguments #14292, feat(libSceLibreSsl3): implement the RSA, DH and DSA get0 key and parameter accessors #10490, feat(libSceLibreSsl3): implement the X509 notBefore, notAfter and signature getters #10491, feat(libSceLibreSsl): implement file and socket BIO adapters #12928, feat(libSceLibreSsl3): implement RSA component ownership setters #14992, feat(libSceLibreSsl3): implement SSL_CIPHER_get_id #14483, feat(libSceLibreSsl3): implement TLS protocol list parsing #15045, feat(libSceLibreSsl3): implement the SSL_CTX, SSL, SSL_SESSION and X509 retains, the SSL_CTX version bounds, SSL_get_client_random and X509_get_version #12754, feat(libSceLibreSsl): implement EVP_PKEY_set1_RSA, EVP_PKEY_get1_RSA and EVP_PKEY_copy_parameters #11128, feat(libressl3): implement EVP_PKEY_bits #14409, feat(libSceLibreSsl3): implement BIO_up_ref #12945, test(libSceLibreSsl3): drop unmeasured policy-flag throw assertions #14208, feat(libSceLibreSsl3): implement EVP_get_digestbyname #16258, feat(libSceLibreSsl3): implement session time and version accessors #15119, feat(libSceLibreSsl3): implement four libtls CA and verification settings #15303, feat(libSceLibreSsl3): implement signature algorithm lookup #15406, feat(libSceLibreSsl3): implement ASN.1 value mutation and octet lifetime #14889 and the ASN.1 string, ASN.1 object, key query and X509 extension work merged): only the count lines changed, and the source and test registration now follow feat(libSceLibreSsl3): implement EVP_get_digestbyname #16258'sDigestNameslines. On Linux (GCC 15), all 34 LibreSSL3 tests pass, includingguest_libressl3_ecdsa_sig,guest_libressl3_rsa_getters,guest_libressl3_rsa_setters,guest_libressl3_tls_protocols,guest_libressl3_mixed_evp,guest_libressl3_key_componentsandguest_libressl3_x509_validity.randsstores fails attests/EcdsaSig.cpp:39. This was run on the first version of the branch; the implementation is unchanged.python3 tools/check_conventions.py --base origin/main: all conventions checks passed.python3 tools/pr_overlap.py: no other open PR implementsECDSA_SIG_get0(searched by name and NID).Api.hppinclude sit where feat(libSceLibreSsl3): implement ASN1_STRING_get0_data and ASN1_INTEGER_free #10452, feat(libSceLibreSsl3): implement the RSA, DH and DSA get0 key and parameter accessors #10490, feat(libSceLibreSsl3): implement the X509 notBefore, notAfter and signature getters #10491, feat(libSceLibreSsl3): implement X509_get0_extensions, X509_get_ext_count and X509_get_ext #10493 and feat(libSceLibreSsl3): implement EVP digest contexts and SHA methods #10960 don't insert theirs; trial merges with those five are clean.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code