feat(libSceLibreSsl): implement EVP_PKEY_id #10418
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10418"
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 MarcZX10 on 2026-10-23T23:23:41Z.
What
Implement the missing
EVP_PKEY_idexport inlibSceLibreSsl. The function returns the stored key type unchanged. The implementation follows LibreSSL 2.5.4:EVP_PKEYbegins with anint type, andEVP_PKEY_idreturns that field (implementation, structure). The cited firmware discussion identifies LibreSSL 2.5.4, but this layout has not been independently verified on a PS5.The regression test covers unchanged return values across representative identifiers and the null-input throw required by this repository's unimplemented-path convention. Null is dereferenced in the reference implementation.
Tested
Linux host, GCC, C++20: manually compiled the implementation and focused test source with
-Wall -Wextra -Werror, using a small local shim for the repository's throw helper; the test passed.python3 tools/check_conventions.py --base upstream/mainandgit diff upstream/main...HEAD --checkpass. The full CMake target, Windows, a title, and console behavior were not tested.The exact symbol was searched in the open PR queue and no PR implementing
EVP_PKEY_idwas found. The full-queue overlap scan could not finish, so I ran the repository overlap comparison against the active LibreSSL PR refs affecting these files. It found line conflicts atCMakeLists.txt:1anddebt/libSceLibreSsl.md:5with #10398, #10395, #10373, #10376, and #9529; and at the debt count with #10071. It found no duplicate export. #10005 shares the relevant files but could not be compared because that branch conflicts with currentmain. I proposed that #10398, #10395, and #10005 land first, with this branch rebased afterward, and asked those authors to confirm. This draft remains pending their sequencing responses.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)Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-27T01:21:08Z.
Review: COMMENTED
Linux run of the full build, since the description reports a standalone compile with a shim.
Machine: Linux x86_64, i7-8700 (6 cores / 12 threads, AVX2), Ubuntu 26.04, GCC 15.2, Release,
BUILD_TESTING=ON. Head15ea8e9e2merged ontomaine2d457be3(clean).libressltests pass,guest_libressl_pkey_idamong them (20 of 20 repeated runs), pluspatched_libraries.guest_libressl_pkey_idwithEVP_PKEY_id_nid_postfix not implemented.src/PkeyId.cppkeeps it patched. In the patchedlibSceLibreSsl.prx, it is exported asyPuxTL2GJO0, at the same address asEVP_PKEY_id_nid_postfixin the unpatched build.Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T04:57:27Z.
Review: COMMENTED
Reviewed — null-key assertion request open, branch DIRTY
The null-key check in the test still pins the throw the reviewer asked to drop, and the branch conflicts with main.
What I ran
Results
Findings
Sources
github.com/boykopovar/AnyPS5@39568acbba/core/libs/tests/GuestLibreSslPkeyId.cpp (L27-L33)github.com/boykopovar/AnyPS5@39568acbba/core/libs/prx/libSceLibreSsl/src/PkeyId.cpp (L10-L13)Not verified