Repository navigation
Conversation
EC_GROUP_new_by_curve_name, EC_GROUP_free, EC_GROUP_get_degree, EC_KEY_new, EC_KEY_new_by_curve_name, EC_KEY_free, EC_KEY_set_group, EC_KEY_get0_group and ECDSA_size follow LibreSSL 2.5.4 on top of mbedtls's named curves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # core/libs/prx/libSceLibreSsl/CMakeLists.txt # core/libs/prx/libSceLibreSsl/include/Api.hpp # docs/dev/debt/libSceLibreSsl.md
Progress report (bea1b1d → 596aeb8)➖ System libraries: 42.48% (+0.0%, +2 implemented, -2 reverted functions) ✅ 2 implemented
|
| Library | Name |
|---|---|
| libSceLibreSsl | ECDSA_sign_nid_postfix |
| libSceLibreSsl | EC_KEY_check_key_nid_postfix |
Changed libraries (implemented exports)
| Library | Before | After | Change |
|---|---|---|---|
| libSceLibreSsl | 309/473 (65.33%) | 309/473 (65.33%) | +0.00% |
|
@ahmadmuj thanks for the heads-up and for making the clash fail at compile time. Proposed order, per the overlap rule in CONTRIBUTING: #10407 goes in right after #10395. It was opened on 2026-10-23, was closed only by the open-PR limit and is already under review. It keeps |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed exact head 714a0abb61c173ec9d3ca4ddeb1099b6ad8ad40e. The private-key copy and clear/free behavior is consistent with the cited LibreSSL 2.5.4 paths; local conventions and diff checks pass, and the PR reports focused EC/RSA test coverage plus a LibreSSL differential.
Before this stack is ready to merge, please resolve the shared EcKey::privateKey integration order called out in MatteoSid's review comment. #10407 adds the EC point/key operations using that same member with an mbedtls_mpi representation, while this PR replaces it with the guest BIGNUM representation. The current checklist only declares #10395 and #10915, and this branch does not contain or rebase on #10407. Please add the dependency and update/rebase the stack in the agreed order after #10395, or coordinate an alternative order with the other author and document it. #10407 is currently closed by the intake limit; I have not reopened it or used its code.
I am requesting changes for this unresolved integration dependency. The current upstream eligibility, conventions, intake, labels and report checks pass; the product build/test jobs are skipped by repository policy. I did not independently run the reported full build because this workspace's AnyPS5 submodules are uninitialized.
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
@ahmadmuj firmware 13.42 data for the two new functions. The decrypted
|
|
A Windows run of this head, since the description doesn't cover Windows: Windows 11 Home 10.0.26200, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release.
AI-assisted: yes (Claude Code) |
|
@MatteoSid @MarcZX10 thanks. I tried MatteoSid's order first: merged Once
So the swap adds new behaviour to five of #10407's functions ( Counter-proposal: #10395 + #10915, then this PR, then your stack. Then this PR doesn't depend on a closed PR. You mentioned #10407 can't be reopened after the force push, so the stack comes back as a new PR anyway. When it rebases, I've put the proposed order in the description. MarcZX10, I'll re-request your review once we agree. |
|
@ahmadmuj thanks for trying the merge and for the 2.5.4 probe; those cases are useful. One correction first: #10407 can be reopened. I left its branch untouched so that GitHub allows it, and pushed the rebased stack to a separate branch instead. It waits only for #10395. On the order, I would still put #10407 right after #10395. It is ready and reviewed, and it needs neither #10915 nor a BIGNUM, since none of its exports takes a private key from the guest. Out-of-range keys only become reachable through
If that works for you, please put #10407 in Depends on here. |
EC_GROUP_new_by_curve_name, EC_GROUP_free, EC_GROUP_get_degree, EC_KEY_new, EC_KEY_new_by_curve_name, EC_KEY_free, EC_KEY_set_group, EC_KEY_get0_group and ECDSA_size follow LibreSSL 2.5.4 on top of mbedtls's named curves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ECDH EC_POINT_new, EC_POINT_free, EC_POINT_point2oct, EC_POINT_oct2point, EC_KEY_generate_key, EC_KEY_check_key, EC_KEY_get0_public_key, EC_KEY_set_public_key, ECDSA_sign, ECDSA_verify and ECDH_compute_key follow LibreSSL 2.5.4 on top of mbedtls's named curves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… into fix/anyps5-lssl-ec-privkey
… key generation, ECDSA and ECDH
EC_GROUP_new_by_curve_name, EC_GROUP_free, EC_GROUP_get_degree, EC_KEY_new, EC_KEY_new_by_curve_name, EC_KEY_free, EC_KEY_set_group, EC_KEY_get0_group and ECDSA_size follow LibreSSL 2.5.4 on top of mbedtls's named curves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ECDH EC_POINT_new, EC_POINT_free, EC_POINT_point2oct, EC_POINT_oct2point, EC_KEY_generate_key, EC_KEY_check_key, EC_KEY_get0_public_key, EC_KEY_set_public_key, ECDSA_sign, ECDSA_verify and ECDH_compute_key follow LibreSSL 2.5.4 on top of mbedtls's named curves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…_key, as LibreSSL 2.5.4
…var#10407) into fix/anyps5-lssl-ec-privkey
|
Checked this PR at I suggest landing this PR first, then adapting #25114 to the new storage while preserving its error queues. I am holding the alignment push until that order is agreed. No new test result is claimed for the pending merge. |
ligmaSec
left a comment
There was a problem hiding this comment.
Built the focused checks against the existing Linux runtime. The GuestLibreSslEcKeys and GuestLibreSslEcPrivateKey fixtures passed. The separate LibreSSL3 fixtures did not build with this standalone setup.
AI-assisted: yes.
What
Implements
EC_KEY_get0_private_keyandEC_KEY_set_private_keywith a guest-heap BIGNUM. Copying, freeing and generation follow LibreSSL 2.5.4. Checking, ECDSA and ECDH use that stored key.Head
596aeb860cc9fb1df689c6be571d9ebf2817cbe5merges main648ba19b3edec93a073217bda7087dedcfd85454without rewriting history. Replacement #15827 is now merged. This keeps main's point operations, ASN.1 flags and 64-byteEcKeylayout, with references at offset 48.Native DER decoding and encoding now use the public BIGNUM APIs instead of the replaced private-key layout. The decoder keeps its range checks and error queue. Encoding keeps fixed-width scalar padding. Existing native test helpers use the same APIs. The EC parameters test registers its allocator before key generation.
The existing private-key regression and maintainer removals stay unchanged. Known limits stay in the debt fragment: unsupported negative or non-normalized keys throw; signing and ECDH reject out-of-range keys; some failures queue no error. No console layout claim is made. #11466 carries this feature as a dependency; its own point decoder changes different functions.
Tested
Linux x86_64, Ubuntu 24.04 on WSL2, GCC 13.3, Release, Intel Core i7-13700K. No title or console run.
On the exact head above, 17 focused CPU tests pass: legacy EC, EC keys, EC private key, EC point multiplication and PKEY lifecycle; native ASN.1 flag, EC group, EC parameters, PKEY getters, ECDSA, public key, key reference, DER, PEM and PKEY context. Main's SSL lifecycle and ex-data tests also pass.
The DER test checks exact P-256/P-384 round trips, scalar-one public-key derivation and padding, zero/order rejection, exact error codes and allocation balance. The earlier padding mutation fails, and its restoration passes, at
4bd52813585b11b9a768f66faeba39c5e3adace4. That source and test remain byte-identical here; this merge does not repeat the mutation.Commands to reproduce the checks, from a credential-free shell (the build targets ran in groups):
The focused targets build. Public headers, conventions, debt and whitespace checks pass. The upstream native import-binding harness passes against six freshly built and patched modules. This merge removes adjacent obsolete DTLS/private-key stubs. The existing private-key code, DER corrections, tests and debt remain unchanged. Main's method and lifecycle implementations remain intact. The fresh configure first misses the nested mbedTLS framework checkout; restoring its pinned submodule fixes setup. All scoped build and runtime checks then pass.
No full product build, full ctest, ASan, new oracle comparison, Windows, macOS, console, game or GPU run. Earlier Windows evidence checks an older head.
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)27555b3f7c169e1053fa022244963450a5619658