feat(libressl3): implement EVP_PKEY_bits #13941
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13941"
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 DonRyuzaki on 2026-10-31T13:17:21Z.
What
Implement
EVP_PKEY_bitsin the existinglibSceLibreSsl3library, replacing its throwing unknown-signature placeholder withint (const LibreSsl3EvpPkey*). Null keys, methods and callbacks return zero; otherwise dispatch through the method'spkey_bitscallback with the original key and preserve its result.The contract follows LibreSSL 4.0.0 p_lib.c. The existing key model places the method at offset 8; the callback at offset 104 follows that revision's LP64
evp_local.h. Record the unverified console ABI and constructor interoperability in the library's technical debt. This adds one function to an existing library and no third-party dependency.Add a registered regression test covering null paths, the neighboring callback slot, original argument forwarding, exact callback count, signed return values, unchanged input objects and replacement/removal of the callback. The existing key-reference test also runs this coverage by default.
Tested
Windows, GCC 15.2 DWARF / Release: full runtime libraries and relinker build passed (initial 2,995 build steps). After rebasing onto main
26fa1212b8the complete targets built again and all six focused tests passed: patched_libraries, strict_nid_filter, guest_libressl3_pkey_bits, guest_libressl3_key_reference, guest_libressl3_pkey_getters and guest_crypto_memcmp. Two compiler jobs throughout. Callback coverage includes null paths, exact method offset, original argument identity, signed result, call count, unchanged inputs and callback replacement/removal. No current Linux or game-compatibility claim.check_conventions.py --base origin/main passes. Public header audit verifies unique declarations and umbrella coverage for 398 libraries / 26,175 exports. Published 14011ceca7c2084b4ad122a9e53688c85d864373 has exactly tested local tree 93a0b6131ab531e39c299c98c1d1e6b37119e657.
Official overlap checking reports adjacent hunks with #12315 (debt insertion) and #12945 (retain-helper extraction / test dispatch), and unverified shared files for #9970, #10452, #10461, #10490, #10491, #10493, #10557, #10631, #10960, #11146, #12754 and #14212. Every reported branch's actual shared patch was manually compared: none implements EVP_PKEY_bits. Their existing base conflicts remain unverified for clean merging. #12754 also extracts the helper namespace; #14212 changes debt inventory formatting. No dependency on those changes is claimed.
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)Pull request closed