feat(libSceLibreSsl3): implement ECDSA_SIG_get0 #15449
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15449"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by AlexWhitehouse on 2026-11-03T11:09:26Z.
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 #13831 assigned by NID hash. Since #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;main3c2af82080(after #14366, #10395, #10557, #10960, #14292, #10490, #10491, #12928, #14992, #14483, #15045, #12754, #11128, #14409, #12945, #14208, #16258, #15119, #15303, #15406, #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 #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 #10452, #10490, #10491, #10493 and #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