Repository navigation
feat(libressl3): implement EVP_PKEY_bits - #13941
Closed
DonRyuzaki wants to merge 1 commit into
Closed
DonRyuzaki wants to merge 1 commit into
DonRyuzaki wants to merge 1 commit into
Conversation
|
Thank you for your contribution! Authors with no pull requests merged into |
Contributor
Author
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 26fa121 the 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 14011ce 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)