Skip to content

feat(libressl3): implement EVP_PKEY_bits - #13941

Closed
DonRyuzaki wants to merge 1 commit into
boykopovar:mainfrom
DonRyuzaki:feat/libressl3-pkey-bits
Closed

DonRyuzaki wants to merge 1 commit into
boykopovar:mainfrom
DonRyuzaki:feat/libressl3-pkey-bits

Conversation

@DonRyuzaki

@DonRyuzaki DonRyuzaki commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

What

Implement EVP_PKEY_bits in the existing libSceLibreSsl3 library, replacing its throwing unknown-signature placeholder with int (const LibreSsl3EvpPkey*). Null keys, methods and callbacks return zero; otherwise dispatch through the method's pkey_bits callback 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

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@github-actions github-actions Bot added the open PR limit Closed over the open PR limit: 1 without merged PRs, 20 with at least 1, none from 20 label Oct 31, 2026
@github-actions

Copy link
Copy Markdown

Thank you for your contribution! Authors with no pull requests merged into main can have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.

@github-actions github-actions Bot closed this Oct 31, 2026
@DonRyuzaki

Copy link
Copy Markdown
Contributor Author

#13910 has merged, so the 20-PR allowance now applies. The #13941 branch is updated and its full Windows build and six focused tests pass. Could a maintainer reopen it? The author UI offers no reopen control.

@DonRyuzaki DonRyuzaki mentioned this pull request Nov 1, 2026
12 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open PR limit Closed over the open PR limit: 1 without merged PRs, 20 with at least 1, none from 20

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant