feat(libSceLibreSsl3): implement the RSA, DH and DSA get0 key and parameter accessors #10490

Merged
alvaroelpob merged 19 commits from upstream-pr/10490 into main 2026-11-06 04:57:06 +00:00
alvaroelpob commented 2026-10-24 03:16:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-10-24T03:16:46Z.


What

Implements RSA_get0_key, DH_get0_pqg, DH_get0_key, DSA_get0_pqg and DSA_get0_key in libSceLibreSsl3, which threw and were declared without parameters.

The module is LibreSSL 4.0.0 (firmware 13.40 measurements in #8981). Signatures, layouts and results follow that release's rsa_local.h, rsa_lib.c, dh_local.h, dh_lib.c, dsa_local.h and dsa_lib.c. Each writes the requested fields through the non-null output pointers and leaves the others alone:

Export Fields
void RSA_get0_key(const RSA*, const BIGNUM** n, const BIGNUM** e, const BIGNUM** d) n (24), e (32), d (40)
void DH_get0_pqg(const DH*, const BIGNUM** p, const BIGNUM** q, const BIGNUM** g) p (8), q (64), g (16)
void DH_get0_key(const DH*, const BIGNUM** pub_key, const BIGNUM** priv_key) pub_key (32), priv_key (40)
void DSA_get0_pqg(const DSA*, const BIGNUM** p, const BIGNUM** q, const BIGNUM** g) p (16), q (24), g (32)
void DSA_get0_key(const DSA*, const BIGNUM** pub_key, const BIGNUM** priv_key) pub_key (40), priv_key (48)

The structs are 152, 128 and 112 bytes. The offsets were checked with static_asserts and against offsetof from the 4.0.0 headers compiled on x86-64; the 4.0.0 RSA has no engine field, unlike the 2.5.4 one in libSceLibreSsl. LibreSSL reads the key only for the outputs requested: with every output null the call returns without reading it, and a null key throws only when an output is requested, where LibreSSL would dereference it. This library doesn't list the module's own RSA_new, d2i_RSA_PUBKEY and the other key-creating exports yet, so on Linux a title's import of them binds to libSceLibreSsl, whose RSA and DSA use the 2.5.4 layout; the debt entry records it. On firmware 13.42 the module makes its own keys with these 4.0.0 offsets.

The debt entry records the source and what is unverified. The pending-export count drops from 84 to 79, and the five names join the exclusion list.

Tested

Ubuntu 26.04 (WSL2, kernel 6.18), GCC 15.2.0, Release, full build with BUILD_TESTING=ON on main 379b1dca3. There is one commit per function, and each adds that function with its test block and debt update. Each was built and its guest_libressl3_key_components test and check_conventions.py run on its own.

  • New guest_libressl3_key_components test, on LibreSsl3Rsa, LibreSsl3Dh and LibreSsl3Dsa objects whose every pointer field holds a distinct address. Each accessor returns exactly its slots, leaves outputs passed as null and untouched outputs alone, returns null for fields that are null, returns without reading a null key when every output is null, and throws for a null key when any output is requested.
  • Full ctest -j16 at the last commit: 2005/2006 pass. agc_driver_multisample_retirement fails the same way on main on this machine.
  • Not tested: Windows, a title.
  • Rebased on main e7e3e9c198, head 476c2c67c6. The branch still merged cleanly, but after #10706 public_headers fails on the merge: the exports kept their (void) stubs in include/Api.hpp and the test redeclared them. 476c2c67c6 (refactor(libSceLibreSsl3): declare the key component exports in the public header) puts the real signatures and their structs in libSceLibreSsl3/include/Api.hpp and drops the test's redeclarations. Full build and ctest -j16: 2202/2203 pass; agc_driver_multisample_retirement fails the same way on that main. check_conventions.py --base upstream/main passes.
  • Rebased on main 6e775f452a, head dfb0b57aa4, to resolve the conflicts with main on the shared CMakeLists.txt and debt-file lines; both sides are kept and the count is 84 minus this PR's exports. Review fixes cc8bfe4e93, 1a7514f850 and dfb0b57aa4 make a call with every output null return without reading the key, build the tests on the public structs and update the debt entry; guest_libressl3_key_components passes. Full build and ctest -j16: 2268/2269 pass; agc_driver_multisample_retirement fails the same way on that main. check_conventions.py --base upstream/main passes.
  • e2d9aaa0a8 rewrites the debt entry to state that gap and cite the 13.42 run; docs only. Full build and ctest -j16 on main 6e775f452a: 2268/2269 pass; agc_driver_multisample_retirement fails the same way on that main. check_conventions.py --base upstream/main passes.
  • Rebased on main 74acfad65b (after #10948), head 4d500b4753, to resolve the conflicts with main on the shared CMakeLists.txt and debt-file lines; both sides are kept and the count is 83 minus this PR's exports. Full build and ctest -j16: 2431/2432 pass; agc_driver_multisample_retirement fails the same way on that main. check_conventions.py --base upstream/main passes.
  • Rebased on main f2d874c1fd (after #10948, #13267, #13831, #13897 and #14171), head 2e1db140dc, to resolve the conflicts on the pending-export line of the debt file: the count and the exclusion list keep main's names and add this PR's, and the count, 76, matches the stubs in Export.cpp. In the commit that declares the RSA_new, d2i_RSA_PUBKEY, EVP_PKEY_get1_RSA and PEM_read_RSAPrivateKey stubs, Export.cpp and include/Api.hpp conflicted with #13897 next to EVP_PKEY_get0_*: it keeps main's implemented EVP_PKEY_get0_* and adds only the EVP_PKEY_get1_RSA stub, as before. libressl3_import_binding passes. Full build and ctest -j16: 3158/3158 pass. check_conventions.py --base upstream/main passes.
  • Rebased on main 4939814d79 (after #9535 and #9970), head 873d832a64, to resolve the conflicts on the shared Export.cpp, Api.hpp and debt-file lines; both sides are kept. main's ERR_load_crypto_strings (#9535) is kept next to the DSA_get0_pqg and DSA_get0_key stubs these commits remove, and its typed OpenSSL_version (#9970) next to the added PEM_read_RSAPrivateKey declaration. main says 76 pending exports with 74 stubs left, so the count is set to the 73 stubs left in Export.cpp. Full build and ctest -j16: 3539/3539 pass. check_conventions.py --base upstream/main passes.
  • Merged main b11c7bf84f (after #10557), head 7572543330, to resolve the conflicts on the shared CMakeLists.txt, Api.hpp and debt-file lines; both sides are kept, X509_PUBKEY_get0_param stays in the exclusion list, and the count is set to the 72 stubs left in Export.cpp. Full build and ctest -j16: 3884/3884 pass. check_conventions.py --base upstream/main passes.

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: #9536, #9571, #10452, #10461
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4992059794 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10490). Originally posted by [alvaroelpob](https://github.com/alvaroelpob) on 2026-10-24T03:16:46Z. --- ### What Implements `RSA_get0_key`, `DH_get0_pqg`, `DH_get0_key`, `DSA_get0_pqg` and `DSA_get0_key` in libSceLibreSsl3, which threw and were declared without parameters. The module is LibreSSL 4.0.0 ([firmware 13.40 measurements in #8981](https://github.com/boykopovar/AnyPS5/discussions/8981#discussioncomment-19111214)). Signatures, layouts and results follow that release's [`rsa_local.h`, `rsa_lib.c`](https://github.com/libressl/openbsd/tree/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/rsa), [`dh_local.h`, `dh_lib.c`](https://github.com/libressl/openbsd/tree/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/dh), [`dsa_local.h` and `dsa_lib.c`](https://github.com/libressl/openbsd/tree/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/dsa). Each writes the requested fields through the non-null output pointers and leaves the others alone: | Export | Fields | |---|---| | `void RSA_get0_key(const RSA*, const BIGNUM** n, const BIGNUM** e, const BIGNUM** d)` | `n` (24), `e` (32), `d` (40) | | `void DH_get0_pqg(const DH*, const BIGNUM** p, const BIGNUM** q, const BIGNUM** g)` | `p` (8), `q` (64), `g` (16) | | `void DH_get0_key(const DH*, const BIGNUM** pub_key, const BIGNUM** priv_key)` | `pub_key` (32), `priv_key` (40) | | `void DSA_get0_pqg(const DSA*, const BIGNUM** p, const BIGNUM** q, const BIGNUM** g)` | `p` (16), `q` (24), `g` (32) | | `void DSA_get0_key(const DSA*, const BIGNUM** pub_key, const BIGNUM** priv_key)` | `pub_key` (40), `priv_key` (48) | The structs are 152, 128 and 112 bytes. The offsets were checked with `static_assert`s and against `offsetof` from the 4.0.0 headers compiled on x86-64; the 4.0.0 `RSA` has no `engine` field, unlike the 2.5.4 one in libSceLibreSsl. LibreSSL reads the key only for the outputs requested: with every output null the call returns without reading it, and a null key throws only when an output is requested, where LibreSSL would dereference it. This library doesn't list the module's own `RSA_new`, `d2i_RSA_PUBKEY` and the other key-creating exports yet, so on Linux a title's import of them binds to libSceLibreSsl, whose `RSA` and `DSA` use the 2.5.4 layout; the debt entry records it. On firmware 13.42 the module makes its own keys with these 4.0.0 offsets. The debt entry records the source and what is unverified. The pending-export count drops from 84 to 79, and the five names join the exclusion list. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Ubuntu 26.04 (WSL2, kernel 6.18), GCC 15.2.0, Release, full build with `BUILD_TESTING=ON` on `main` 379b1dca3. There is one commit per function, and each adds that function with its test block and debt update. Each was built and its `guest_libressl3_key_components` test and `check_conventions.py` run on its own. - New `guest_libressl3_key_components` test, on `LibreSsl3Rsa`, `LibreSsl3Dh` and `LibreSsl3Dsa` objects whose every pointer field holds a distinct address. Each accessor returns exactly its slots, leaves outputs passed as null and untouched outputs alone, returns null for fields that are null, returns without reading a null key when every output is null, and throws for a null key when any output is requested. - Full `ctest -j16` at the last commit: 2005/2006 pass. `agc_driver_multisample_retirement` fails the same way on `main` on this machine. - Not tested: Windows, a title. - Rebased on `main` e7e3e9c198, head 476c2c67c6. The branch still merged cleanly, but after #10706 `public_headers` fails on the merge: the exports kept their `(void)` stubs in `include/Api.hpp` and the test redeclared them. 476c2c67c6 (`refactor(libSceLibreSsl3): declare the key component exports in the public header`) puts the real signatures and their structs in `libSceLibreSsl3/include/Api.hpp` and drops the test's redeclarations. Full build and `ctest -j16`: 2202/2203 pass; `agc_driver_multisample_retirement` fails the same way on that `main`. `check_conventions.py --base upstream/main` passes. - Rebased on `main` 6e775f452a, head dfb0b57aa4, to resolve the conflicts with `main` on the shared `CMakeLists.txt` and debt-file lines; both sides are kept and the count is 84 minus this PR's exports. Review fixes cc8bfe4e93, 1a7514f850 and dfb0b57aa4 make a call with every output null return without reading the key, build the tests on the public structs and update the debt entry; `guest_libressl3_key_components` passes. Full build and `ctest -j16`: 2268/2269 pass; `agc_driver_multisample_retirement` fails the same way on that `main`. `check_conventions.py --base upstream/main` passes. - e2d9aaa0a8 rewrites the debt entry to state that gap and cite the 13.42 run; docs only. Full build and `ctest -j16` on `main` 6e775f452a: 2268/2269 pass; `agc_driver_multisample_retirement` fails the same way on that `main`. `check_conventions.py --base upstream/main` passes. - Rebased on `main` 74acfad65b (after #10948), head 4d500b4753, to resolve the conflicts with `main` on the shared `CMakeLists.txt` and debt-file lines; both sides are kept and the count is 83 minus this PR's exports. Full build and `ctest -j16`: 2431/2432 pass; `agc_driver_multisample_retirement` fails the same way on that `main`. `check_conventions.py --base upstream/main` passes. - Rebased on `main` f2d874c1fd (after #10948, #13267, #13831, #13897 and #14171), head 2e1db140dc, to resolve the conflicts on the pending-export line of the debt file: the count and the exclusion list keep `main`'s names and add this PR's, and the count, 76, matches the stubs in `Export.cpp`. In the commit that declares the `RSA_new`, `d2i_RSA_PUBKEY`, `EVP_PKEY_get1_RSA` and `PEM_read_RSAPrivateKey` stubs, `Export.cpp` and `include/Api.hpp` conflicted with #13897 next to `EVP_PKEY_get0_*`: it keeps `main`'s implemented `EVP_PKEY_get0_*` and adds only the `EVP_PKEY_get1_RSA` stub, as before. `libressl3_import_binding` passes. Full build and `ctest -j16`: 3158/3158 pass. `check_conventions.py --base upstream/main` passes. - Rebased on `main` 4939814d79 (after #9535 and #9970), head 873d832a64, to resolve the conflicts on the shared `Export.cpp`, `Api.hpp` and debt-file lines; both sides are kept. `main`'s `ERR_load_crypto_strings` (#9535) is kept next to the `DSA_get0_pqg` and `DSA_get0_key` stubs these commits remove, and its typed `OpenSSL_version` (#9970) next to the added `PEM_read_RSAPrivateKey` declaration. `main` says 76 pending exports with 74 stubs left, so the count is set to the 73 stubs left in `Export.cpp`. Full build and `ctest -j16`: 3539/3539 pass. `check_conventions.py --base upstream/main` passes. - Merged `main` b11c7bf84f (after #10557), head 7572543330, to resolve the conflicts on the shared `CMakeLists.txt`, `Api.hpp` and debt-file lines; both sides are kept, `X509_PUBKEY_get0_param` stays in the exclusion list, and the count is set to the 72 stubs left in `Export.cpp`. Full build and `ctest -j16`: 3884/3884 pass. `check_conventions.py --base upstream/main` passes. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #9536, #9571, #10452, #10461 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
copilot-pull-request-reviewer[bot] commented 2026-10-24 03:18:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-10-24T03:18:39Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5636606763 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10490#pullrequestreview-5636606763). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-10-24T03:18:39Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
MarcZX10 commented 2026-10-24 12:15:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T12:15:13Z.

Review: APPROVED


Reviewed head f05c46e39d10a6d3a5cfe5eb481313ea460b49c3.

I checked the five accessors against the pinned LibreSSL 4.0.0 structures and getter behavior. The asserted sizes/offsets for RSA, DH, and DSA match their field order, and each accessor writes only non-null output pointers from the specified fields. The null-key exception path and output-selection tests are consistent with the stated compatibility approach. I found no blocking correctness issue in this diff.

The PR reports focused accessor tests and a 2005/2006 full CTest run, with the remaining failure also present on main; I did not reproduce these runs locally. Current convention, labels, eligibility, and report checks pass; Linux, Windows, register-context, relinker, write-watch, and ASan jobs are skipped. The overlap report with #10557 lists shared build/export/debt files but no same exports; coordinate those file edits when composing the changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5638203583 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10490#pullrequestreview-5638203583). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T12:15:13Z. **Review:** APPROVED --- Reviewed head `f05c46e39d10a6d3a5cfe5eb481313ea460b49c3`. I checked the five accessors against the pinned LibreSSL 4.0.0 structures and getter behavior. The asserted sizes/offsets for `RSA`, `DH`, and `DSA` match their field order, and each accessor writes only non-null output pointers from the specified fields. The null-key exception path and output-selection tests are consistent with the stated compatibility approach. I found no blocking correctness issue in this diff. The PR reports focused accessor tests and a 2005/2006 full CTest run, with the remaining failure also present on main; I did not reproduce these runs locally. Current convention, labels, eligibility, and report checks pass; Linux, Windows, register-context, relinker, write-watch, and ASan jobs are skipped. The overlap report with #10557 lists shared build/export/debt files but no same exports; coordinate those file edits when composing the changes.
ahmadmuj commented 2026-10-25 19:17:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ahmadmuj on 2026-10-25T19:17:15Z.

Review: COMMENTED


Checked head dfb0b57aa4d2 (base 6e775f452ae9; also merges clean onto main ae7d59258ea7). Linux, GCC 13.3, Release.

What I ran:

  • guest_libressl3_key_components on the merge: pass. public_headers: pass. check_conventions.py: pass.
  • Compiled the rsa_st/dh_st/dsa_st from the 4.0.0 *_local.h at ce488b78: 152/128/112 bytes, and every offset you read matches. The get0 bodies match rsa_lib.c, dh_lib.c and dsa_lib.c, and the new null-key handling is right.
  • Mutated the offsets and the null-key paths (9 mutations): all go red.
  • Merged #10915 (head 5576345be456, the 2.5.4 RSA in libSceLibreSsl) on top and ran a probe through both libraries.

So on its own this is right for 4.0.0. The problem is where an l3 title gets its RSA from, same pattern I raised on #10960:

  • In the 3.20 table, libSceLibreSsl3 also exports RSA_new, d2i_RSA_PUBKEY, EVP_PKEY_get1_RSA, PEM_read_RSAPrivateKey etc. under the same NIDs as libSceLibreSsl. It has no RSA_set0_key, and rsa_st is private in 4.0.0, so a title can't build its own RSA. Every key that reaches RSA_get0_key comes from one of those shared calls.
  • Our libSceLibreSsl3 doesn't implement them, so on Linux they bind to libSceLibreSsl. LD_DEBUG=bindings on an exe that only needs libSceLibreSsl3.prx: PFxpQ6lkQP0 (d2i_RSA_PUBKEY) and kADEz2eAE7c (RSA_new) bind to libSceLibreSsl.prx, 9RMSBpPZVdk (RSA_get0_key) binds to libSceLibreSsl3.prx.
  • l1 uses the public 2.5.4 layout, which still has ENGINE *engine at 24, so n is at 32.

Composed run, 2048-bit key: l1 d2i_RSA_PUBKEY -> l3 RSA_get0_key(rsa, &n, &e, &d) gives n = NULL, e = the modulus (top=32, low word 0xd941211635074acf), d = 65537. Each field comes from one slot too early. Both PRs' own tests pass, so it only shows once both land.

DSA has the same shift, read from the headers, not run: 2.5.4 dsa_st has int write_params after version, so p is at 24, not 16. l3 DSA_get0_pqg would hand back write_params (1 after DSA_new) as p. Nothing creates an l1 DSA yet, so that one is latent. DH is fine: the offsets are the same in 2.5.4 and 4.0.0.

What I'd suggest: read RSA and DSA through the 2.5.4 layout (#10915's LibreSslRsa for RSA). Titles can't see the 4.0.0 offsets anyway, and that's the object they actually get. The other way is to implement the l3 NIDs for every call that creates or frees these keys, which is a lot more surface. The debt line "No export of this module creates a key yet, so only keys the caller builds reach them" should change either way: the keys come from libSceLibreSsl.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5644839495 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10490#pullrequestreview-5644839495). Originally posted by [ahmadmuj](https://github.com/ahmadmuj) on 2026-10-25T19:17:15Z. **Review:** COMMENTED --- Checked head `dfb0b57aa4d2` (base `6e775f452ae9`; also merges clean onto main `ae7d59258ea7`). Linux, GCC 13.3, Release. What I ran: - `guest_libressl3_key_components` on the merge: pass. `public_headers`: pass. `check_conventions.py`: pass. - Compiled the `rsa_st`/`dh_st`/`dsa_st` from the 4.0.0 `*_local.h` at ce488b78: 152/128/112 bytes, and every offset you read matches. The get0 bodies match `rsa_lib.c`, `dh_lib.c` and `dsa_lib.c`, and the new null-key handling is right. - Mutated the offsets and the null-key paths (9 mutations): all go red. - Merged #10915 (head `5576345be456`, the 2.5.4 RSA in libSceLibreSsl) on top and ran a probe through both libraries. So on its own this is right for 4.0.0. The problem is where an l3 title gets its `RSA` from, same pattern I raised on #10960: - In the 3.20 table, libSceLibreSsl3 also exports `RSA_new`, `d2i_RSA_PUBKEY`, `EVP_PKEY_get1_RSA`, `PEM_read_RSAPrivateKey` etc. under the same NIDs as libSceLibreSsl. It has no `RSA_set0_key`, and `rsa_st` is private in 4.0.0, so a title can't build its own RSA. Every key that reaches `RSA_get0_key` comes from one of those shared calls. - Our libSceLibreSsl3 doesn't implement them, so on Linux they bind to libSceLibreSsl. `LD_DEBUG=bindings` on an exe that only needs `libSceLibreSsl3.prx`: `PFxpQ6lkQP0` (d2i_RSA_PUBKEY) and `kADEz2eAE7c` (RSA_new) bind to `libSceLibreSsl.prx`, `9RMSBpPZVdk` (RSA_get0_key) binds to `libSceLibreSsl3.prx`. - l1 uses the public 2.5.4 layout, which still has `ENGINE *engine` at 24, so `n` is at 32. Composed run, 2048-bit key: l1 `d2i_RSA_PUBKEY` -> l3 `RSA_get0_key(rsa, &n, &e, &d)` gives `n = NULL`, `e` = the modulus (top=32, low word `0xd941211635074acf`), `d` = 65537. Each field comes from one slot too early. Both PRs' own tests pass, so it only shows once both land. DSA has the same shift, read from the headers, not run: 2.5.4 `dsa_st` has `int write_params` after `version`, so `p` is at 24, not 16. l3 `DSA_get0_pqg` would hand back `write_params` (1 after `DSA_new`) as `p`. Nothing creates an l1 DSA yet, so that one is latent. DH is fine: the offsets are the same in 2.5.4 and 4.0.0. What I'd suggest: read RSA and DSA through the 2.5.4 layout (#10915's `LibreSslRsa` for RSA). Titles can't see the 4.0.0 offsets anyway, and that's the object they actually get. The other way is to implement the l3 NIDs for every call that creates or frees these keys, which is a lot more surface. The debt line "No export of this module creates a key yet, so only keys the caller builds reach them" should change either way: the keys come from libSceLibreSsl.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!10490
No description provided.