feat(libSceLibreSsl): implement CMAC with AES-CBC methods #9571

Merged
Felipebmaitan merged 38 commits from upstream-pr/9571 into main 2026-11-03 08:07:19 +00:00
Felipebmaitan commented 2026-10-22 02:46:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Felipebmaitan on 2026-10-22T02:46:52Z.


What

CMAC with AES-CBC methods on the memory BIO stack. Refreshed published history onto fetched main b28bb772177768f99874ca38f6252cd0139acf2a. #9535 is merged; its numeric ERR behavior, shared queue and test-only generator/Python/submodule setup remain unchanged. No replacement PR, force push or unrelated branch changes.

Resolved the pending-export debt conflict by independently recounting the merged Export.cpp: 231 literal NotImplemented_nid_no_patch(__func__) calls, matching direct exported stub bodies. Published runtime implementations and supported fixtures are byte-identical to the previous head; the removed BIO ex-data throw/reference assertion remains absent and production refusal stays intact. Main's Evp.cpp/EvpCipherCtx.cpp registrations and the existing Bignum.cpp registration are all retained exactly once. The full published BN/CMAC ancestry is preserved. Supported RFC/differential/lifecycle/callback/wiping coverage remains; ENGINE refusal is not asserted by the CMAC fixture.

#9446 remains an external prerequisite for CMAC: still open at 5c3dc05f0555b066beab1184f666829d3f4af780, with its author yet to answer the order request. Its branch was not edited, its independent BN firmware/rebase feedback is not claimed resolved, and no agreement is inferred.

Tested

Exact head 4b6e1f0c71835899f5d6947c931c9519de88405f, integrated main b28bb772177768f99874ca38f6252cd0139acf2a. Ubuntu amd64 Docker on Apple Silicon; GCC 13.3.0, CMake 3.28.3, Ninja, Python 3.12.3, Release. Native below means unpatched symbols, not execution on native Linux hardware.

  • 48/48 native + 3/3 patched focused CTests pass, including ERR queue/numeric/load/free, BIO callbacks/null/zero/retry/errors/nonzero-slack full-capacity growth and destruction wiping, available CMAC/BN cases, and current main's LibreSSL/LibreSSL3 regressions, including new EVP and version cases.
  • Fresh initially empty source-built component build for BIO, reconfigured/rebuilt for CMAC. Actual libc/libkernel/LibreSSL/LibreSSL3 and repository NID patcher; pinned mbedTLS/ZArchive/zstd built from source. Separate native/patched loader paths. External harness imports actual repository library/test fragments; this is not a full root/product build.
  • ERR generated fixture deletion: runtime libraries build with it absent; formatter target regenerates it with unchanged SHA256 44af6828fdc064ca16f94aeb07ac913651d2bfce0f5ecbeee6b9b476e6be24e3; three lifecycle cases pass again. Runtime graphs exclude the generator and compile the shared queue once.
  • Header audit: 399 libraries / 27,365 exports, canonical unique declarations and umbrella coverage; strict standalone Clang compilation targeting x86-64 macOS passes (compile-only). All 44 scoped test executables are registered. Exact old/main public-definition/NID union and main runtime implementations are retained; counts and registrations independently audited.
  • python3 tools/check_conventions.py --base origin/main and whitespace pass in isolated Git contexts pinning origin/main to the integrated SHA above, without changing shared tracking refs.
  • Overlap scans completed with exit 2, reporting adjacent/source-list/debt conflicts, inherited BIO code and incomplete comparisons. Reported shared-file/function inventories were reviewed. #12928 inherits BIO and explicitly depends on #9536; #9446's BN work remains preserved in CMAC. The full output and unresolved comparisons are in the latest validation reply; no clean-overlap or external-order agreement is claimed.

Docker denies userfaultfd, so libc uses its existing comparison fallback. No new local Windows/macOS runtime, sanitizer, commercial-title or physical-console run; Hosted CI on 4b6e1f0c71835899f5d6947c931c9519de88405f: windows, conventions, library-portability, eligibility, labels and report succeeded. linux, relinker, relinker-asan, register-context, write-watch and edge-watch were skipped; earlier conventions attempts were cancelled. GitHub reports CLEAN / MERGEABLE; skipped jobs are not claimed as executed. Current-head maintainer re-review remains pending. #9446 is still open/conflicting at 5c3dc05f0555b066beab1184f666829d3f4af780, with no author reply confirming the proposed order. Previous hosted results and bounded growth-wipe/no-Python fragment controls remain historical. Firmware-module comparison evidence remains attributed PC execution with stand-in imports, not console evidence. No success is claimed for skipped or pending jobs.
Formal re-review requests to GitHub returned HTTP 404 for this PR; no reviewer request was registered. The validation reply explicitly asks @MarcZX10 to re-review. This API failure is separate from the validated code fixes and completed hosted CI.
Readiness: the stale needs rebase label has cleared. Formal re-review requests returned HTTP 404 and no reviewer request is registered. MarcZX10 was explicitly asked in the validation reply; the latest approval applies to an older head. #9446 order confirmation remains an external prerequisite.

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, #9446 (proposed order; author confirmation pending)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4961322408 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9571). Originally posted by [Felipebmaitan](https://github.com/Felipebmaitan) on 2026-10-22T02:46:52Z. --- ### What CMAC with AES-CBC methods on the memory BIO stack. Refreshed published history onto fetched main `b28bb772177768f99874ca38f6252cd0139acf2a`. #9535 is merged; its numeric ERR behavior, shared queue and test-only generator/Python/submodule setup remain unchanged. No replacement PR, force push or unrelated branch changes. Resolved the pending-export debt conflict by independently recounting the merged `Export.cpp`: **231** literal `NotImplemented_nid_no_patch(__func__)` calls, matching direct exported stub bodies. Published runtime implementations and supported fixtures are byte-identical to the previous head; the removed BIO ex-data throw/reference assertion remains absent and production refusal stays intact. Main's `Evp.cpp`/`EvpCipherCtx.cpp` registrations and the existing `Bignum.cpp` registration are all retained exactly once. The full published BN/CMAC ancestry is preserved. Supported RFC/differential/lifecycle/callback/wiping coverage remains; ENGINE refusal is not asserted by the CMAC fixture. #9446 remains an external prerequisite for CMAC: still open at `5c3dc05f0555b066beab1184f666829d3f4af780`, with its author yet to answer the [order request](https://github.com/boykopovar/AnyPS5/pull/9446#issuecomment-6538503664). Its branch was not edited, its independent BN firmware/rebase feedback is not claimed resolved, and no agreement is inferred. ### Tested Exact head **`4b6e1f0c71835899f5d6947c931c9519de88405f`**, integrated main **`b28bb772177768f99874ca38f6252cd0139acf2a`**. Ubuntu amd64 Docker on Apple Silicon; GCC 13.3.0, CMake 3.28.3, Ninja, Python 3.12.3, Release. Native below means unpatched symbols, not execution on native Linux hardware. - **48/48 native + 3/3 patched focused CTests pass**, including ERR queue/numeric/load/free, BIO callbacks/null/zero/retry/errors/nonzero-slack full-capacity growth and destruction wiping, available CMAC/BN cases, and current main's LibreSSL/LibreSSL3 regressions, including new EVP and version cases. - Fresh initially empty source-built component build for BIO, reconfigured/rebuilt for CMAC. Actual libc/libkernel/LibreSSL/LibreSSL3 and repository NID patcher; pinned mbedTLS/ZArchive/zstd built from source. Separate native/patched loader paths. External harness imports actual repository library/test fragments; this is not a full root/product build. - ERR generated fixture deletion: runtime libraries build with it absent; formatter target regenerates it with unchanged SHA256 `44af6828fdc064ca16f94aeb07ac913651d2bfce0f5ecbeee6b9b476e6be24e3`; three lifecycle cases pass again. Runtime graphs exclude the generator and compile the shared queue once. - Header audit: **399 libraries / 27,365 exports**, canonical unique declarations and umbrella coverage; strict standalone Clang compilation targeting x86-64 macOS passes (compile-only). All **44 scoped test executables** are registered. Exact old/main public-definition/NID union and main runtime implementations are retained; counts and registrations independently audited. - `python3 tools/check_conventions.py --base origin/main` and whitespace pass in isolated Git contexts pinning `origin/main` to the integrated SHA above, without changing shared tracking refs. - Overlap scans completed with **exit 2**, reporting adjacent/source-list/debt conflicts, inherited BIO code and incomplete comparisons. Reported shared-file/function inventories were reviewed. #12928 inherits BIO and explicitly depends on #9536; #9446's BN work remains preserved in CMAC. The full output and unresolved comparisons are in the latest validation reply; no clean-overlap or external-order agreement is claimed. Docker denies userfaultfd, so libc uses its existing comparison fallback. No new local Windows/macOS runtime, sanitizer, commercial-title or physical-console run; Hosted CI on `4b6e1f0c71835899f5d6947c931c9519de88405f`: `windows`, `conventions`, `library-portability`, `eligibility`, `labels` and `report` succeeded. `linux`, `relinker`, `relinker-asan`, `register-context`, `write-watch` and `edge-watch` were skipped; earlier conventions attempts were cancelled. GitHub reports CLEAN / MERGEABLE; skipped jobs are not claimed as executed. Current-head maintainer re-review remains pending. #9446 is still open/conflicting at `5c3dc05f0555b066beab1184f666829d3f4af780`, with no author reply confirming the proposed order. Previous hosted results and bounded growth-wipe/no-Python fragment controls remain historical. Firmware-module comparison evidence remains attributed PC execution with stand-in imports, not console evidence. No success is claimed for skipped or pending jobs. Formal re-review requests to GitHub returned HTTP 404 for this PR; no reviewer request was registered. The validation reply explicitly asks @MarcZX10 to re-review. This API failure is separate from the validated code fixes and completed hosted CI. Readiness: the stale `needs rebase` label has cleared. Formal re-review requests returned HTTP 404 and no reviewer request is registered. MarcZX10 was explicitly asked in the validation reply; the latest approval applies to an older head. #9446 order confirmation remains an external prerequisite. <!-- 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. --> ### 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, #9446 (proposed order; author confirmation pending) <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no -->
jotitadev commented 2026-10-22 03:45:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-22T03:45:56Z.

Review: COMMENTED


Linux run of the CMAC change, since the description lists only Windows 11 x86-64.

Machine: Linux x86_64, i7-8700 (6 cores / 12 threads), Ubuntu 26.04, GCC 15.2, Release, BUILD_TESTING=ON. Head d14f1143 merged --no-commit onto main 6ef5a1c4c (clean), then git submodule update --init pulled the new 3rdparty/libressl-openbsd (078b3d1, LibreSSL 3.4.1). The branch carries #9535/#9529, so the merge also brings the ERR pieces.

  • Build ok. guest_libressl_cmac and guest_libressl_cmac_patched both pass: RFC 4493 vectors through every split, AES-128/192/256 differential checks against Mbed TLS, staged init/restart/repeated finalization, key-size changes, guest-defined methods, etc.
  • Red→green on Linux: reverting the final subkey mixing in CMAC_Final (output[i] = lastBlock[i] instead of lastBlock[i] ^ subkey[i]) and keeping the test aborts both tests at the first vector — RFC vector 0 split 0: f6c71eedc3d99bb183cb5b8d1568e606 / failed: RFC 4493 tag. So the K1/K2 subkey step is actually exercised and the test guards it.
  • NID patching stays intact: the build's Patching NIDs for libSceLibreSsl step succeeds, patched_libraries passes, guest_libressl_cmac_patched (which runs against the patched .prx via guest_libressl_cmac_patch) passes, and python tools/check_conventions.py --base origin/main reports no errors.

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5609018294 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9571#pullrequestreview-5609018294). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-22T03:45:56Z. **Review:** COMMENTED --- Linux run of the CMAC change, since the description lists only Windows 11 x86-64. Machine: Linux x86_64, i7-8700 (6 cores / 12 threads), Ubuntu 26.04, GCC 15.2, Release, `BUILD_TESTING=ON`. Head `d14f1143` merged `--no-commit` onto `main` `6ef5a1c4c` (clean), then `git submodule update --init` pulled the new `3rdparty/libressl-openbsd` (`078b3d1`, LibreSSL 3.4.1). The branch carries #9535/#9529, so the merge also brings the ERR pieces. - Build ok. `guest_libressl_cmac` and `guest_libressl_cmac_patched` both pass: RFC 4493 vectors through every split, AES-128/192/256 differential checks against Mbed TLS, staged init/restart/repeated finalization, key-size changes, guest-defined methods, etc. - Red→green on Linux: reverting the final subkey mixing in `CMAC_Final` (`output[i] = lastBlock[i]` instead of `lastBlock[i] ^ subkey[i]`) and keeping the test aborts both tests at the first vector — `RFC vector 0 split 0: f6c71eedc3d99bb183cb5b8d1568e606` / `failed: RFC 4493 tag`. So the K1/K2 subkey step is actually exercised and the test guards it. - NID patching stays intact: the build's `Patching NIDs for libSceLibreSsl` step succeeds, `patched_libraries` passes, `guest_libressl_cmac_patched` (which runs against the patched `.prx` via `guest_libressl_cmac_patch`) passes, and `python tools/check_conventions.py --base origin/main` reports no errors. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10 commented 2026-10-22 03:56:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T03:56:05Z.

Review: CHANGES_REQUESTED


I reviewed the CMAC and AES-CBC implementation against the pinned LibreSSL 3.4.1 contracts and the supplied tests. RFC 4493 vectors, streaming splits, staged/replacement/restart paths, custom method callbacks, AES differential checks and the explicit console-layout caveat provide strong evidence. The currently declared #9535 dependency (and its #9529 prerequisite) is valid.

I am requesting changes for an unresolved live overlap. Open PR #9536 also depends on #9535 and edits the same core/libs/CMakeLists.txt insertion area and docs/dev/debt/libSceLibreSsl.md functional section. Its CMake change adds the ErrorQueue and MemoryBio includes; this PR adds Cmac at that same include block, and both add debt entries in the same section. The description notes that #9536 shares the ERR prerequisite but does not record coordination with its author or an agreed order. Please agree which branch lands first with the #9536 author and declare it in Depends on if sequencing is required. Keep the separate CMake includes and all debt entries when resolving the shared insertions.

The hosted eligibility, intake, labels, report and conventions checks pass. Linux, Windows and relinker product jobs are skipped. The author-reported focused Windows tests are detailed; I did not treat skipped hosted jobs as executed. Manual inspection of older CMake/submodule overlap warnings found no competing CMAC implementation; the concrete unresolved shared insertion is #9536.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5609073619 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9571#pullrequestreview-5609073619). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T03:56:05Z. **Review:** CHANGES_REQUESTED --- I reviewed the CMAC and AES-CBC implementation against the pinned LibreSSL 3.4.1 contracts and the supplied tests. RFC 4493 vectors, streaming splits, staged/replacement/restart paths, custom method callbacks, AES differential checks and the explicit console-layout caveat provide strong evidence. The currently declared #9535 dependency (and its #9529 prerequisite) is valid. I am requesting changes for an unresolved live overlap. Open PR #9536 also depends on #9535 and edits the same `core/libs/CMakeLists.txt` insertion area and `docs/dev/debt/libSceLibreSsl.md` functional section. Its CMake change adds the ErrorQueue and MemoryBio includes; this PR adds Cmac at that same include block, and both add debt entries in the same section. The description notes that #9536 shares the ERR prerequisite but does not record coordination with its author or an agreed order. Please agree which branch lands first with the #9536 author and declare it in `Depends on` if sequencing is required. Keep the separate CMake includes and all debt entries when resolving the shared insertions. The hosted eligibility, intake, labels, report and conventions checks pass. Linux, Windows and relinker product jobs are skipped. The author-reported focused Windows tests are detailed; I did not treat skipped hosted jobs as executed. Manual inspection of older CMake/submodule overlap warnings found no competing CMAC implementation; the concrete unresolved shared insertion is #9536.
Felipebmaitan commented 2026-10-22 04:05:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Felipebmaitan on 2026-10-22T04:05:54Z.


Addressed in 80516b407f.

Both #9536 and #9571 are authored by my account, Felipebmaitan. I have set and recorded the order in both descriptions: #9529 -> #9535 -> #9536 -> #9571. This PR now declares Depends on: #9536; the BIO PR retains #9535 as its dependency.

I integrated #9536's actual head (0b6880e4d0) into this branch and resolved the shared insertions by keeping all three separate includes, in order:

  • ErrorQueue.cmake
  • MemoryBio.cmake
  • Cmac.cmake

The ERR string/teardown paragraph, both memory BIO debt entries, and the CMAC debt entry are preserved. Error publication now names both BIO and CMAC consumers, and the remaining-export count accounts for both implementations. CMAC source, headers, its registration file and tests are unchanged from the reviewed d14f114325.

Rebuilt the six focused targets on the combined Windows Release branch. ctest --test-dir build -R "^(guest_libressl_.*|patched_libraries)$" --output-on-failure passes 9/9, including native and patched-NID BIO/CMAC, ERR lifecycle, and patched-library loading. Conventions report zero errors (the existing 1,038-character ERR debt entry still warns); git diff --check passes. The refreshed local overlap scan no longer lists #9536; remaining unrelated debt/export overlap warnings are retained in the PR description.

Please re-review the sequencing change. The full product suite and PS5 equivalence are not claimed by this follow-up.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6332419105 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9571#issuecomment-6332419105). Originally posted by [Felipebmaitan](https://github.com/Felipebmaitan) on 2026-10-22T04:05:54Z. --- Addressed in `80516b407f`. Both #9536 and #9571 are authored by my account, Felipebmaitan. I have set and recorded the order in both descriptions: **#9529 -> #9535 -> #9536 -> #9571**. This PR now declares **Depends on: #9536**; the BIO PR retains #9535 as its dependency. I integrated #9536's actual head (`0b6880e4d0`) into this branch and resolved the shared insertions by keeping all three separate includes, in order: - `ErrorQueue.cmake` - `MemoryBio.cmake` - `Cmac.cmake` The ERR string/teardown paragraph, both memory BIO debt entries, and the CMAC debt entry are preserved. Error publication now names both BIO and CMAC consumers, and the remaining-export count accounts for both implementations. CMAC source, headers, its registration file and tests are unchanged from the reviewed `d14f114325`. Rebuilt the six focused targets on the combined Windows Release branch. `ctest --test-dir build -R "^(guest_libressl_.*|patched_libraries)$" --output-on-failure` passes **9/9**, including native and patched-NID BIO/CMAC, ERR lifecycle, and patched-library loading. Conventions report zero errors (the existing 1,038-character ERR debt entry still warns); `git diff --check` passes. The refreshed local overlap scan no longer lists #9536; remaining unrelated debt/export overlap warnings are retained in the PR description. Please re-review the sequencing change. The full product suite and PS5 equivalence are not claimed by this follow-up.
MarcZX10 commented 2026-10-22 04:12:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T04:12:49Z.

Review: APPROVED


The previous sequencing concern is resolved in the current head: the author integrated #9536, declared the direct dependency, and documented the #9529 → #9535 → #9536 → #9571 order. The follow-up reports the three separate CMake registrations and ERR/BIO/CMAC debt entries preserved, and the CMAC sources/tests unchanged from the prior reviewed head. The new independent Linux report adds focused native and patched-NID runs plus a red/green RFC 4493 subkey control; the author reports the combined Windows focused suite at 9/9. Hosted policy checks pass; product Linux/Windows and relinker jobs are skipped, and full suite/PS5 behavior are explicitly not claimed. I reviewed the implementation and current dependency state; I did not run local tests. No remaining blocking issue found in this review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5609170470 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9571#pullrequestreview-5609170470). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T04:12:49Z. **Review:** APPROVED --- The previous sequencing concern is resolved in the current head: the author integrated #9536, declared the direct dependency, and documented the #9529 → #9535 → #9536 → #9571 order. The follow-up reports the three separate CMake registrations and ERR/BIO/CMAC debt entries preserved, and the CMAC sources/tests unchanged from the prior reviewed head. The new independent Linux report adds focused native and patched-NID runs plus a red/green RFC 4493 subkey control; the author reports the combined Windows focused suite at 9/9. Hosted policy checks pass; product Linux/Windows and relinker jobs are skipped, and full suite/PS5 behavior are explicitly not claimed. I reviewed the implementation and current dependency state; I did not run local tests. No remaining blocking issue found in this review.
MarcZX10 commented 2026-10-22 11:00:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T11:00:54Z.


Follow-up on the current approved head: I checked the remaining open LibreSSL overlaps and found a concrete one with #9446. A three-way merge simulation of #9571 and #9446 against their common base conflicts in core/libs/prx/libSceLibreSsl/Export.cpp: #9446 removes the BN stub block while #9571 replaces the adjacent CMAC stubs. Their docs/dev/debt/libSceLibreSsl.md additions also need to be retained together. The current #9571 dependency chain covers #9536 → #9535 → #9529, but not #9446.

Please coordinate a merge order with the #9446 author and list #9446 under Depends on if it must land first (or document the agreed reverse order and preserve both export/debt changes when rebasing). I have not found a competing CMAC implementation. This is a merge-order request, not a new CMAC code finding. The automated overlap helper cannot run in this checkout because its expected upstream/main branch ref does not exist; the merge simulation above is direct evidence of the conflict.

The exact current head remains the one covered by my approval. Current-base sync is 9 ahead / 98 behind and cleanly mergeable; conventions reports zero errors and one inherited debt-length warning. The large open queue still exceeds the #5239 intake hold, and the PR remains generic without title-specific evidence; please keep the intake direction in mind when deciding whether to proceed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6339126241 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9571#issuecomment-6339126241). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T11:00:54Z. --- Follow-up on the current approved head: I checked the remaining open LibreSSL overlaps and found a concrete one with #9446. A three-way merge simulation of #9571 and #9446 against their common base conflicts in `core/libs/prx/libSceLibreSsl/Export.cpp`: #9446 removes the BN stub block while #9571 replaces the adjacent CMAC stubs. Their `docs/dev/debt/libSceLibreSsl.md` additions also need to be retained together. The current #9571 dependency chain covers #9536 → #9535 → #9529, but not #9446. Please coordinate a merge order with the #9446 author and list #9446 under `Depends on` if it must land first (or document the agreed reverse order and preserve both export/debt changes when rebasing). I have not found a competing CMAC implementation. This is a merge-order request, not a new CMAC code finding. The automated overlap helper cannot run in this checkout because its expected `upstream/main` branch ref does not exist; the merge simulation above is direct evidence of the conflict. The exact current head remains the one covered by my approval. Current-base sync is 9 ahead / 98 behind and cleanly mergeable; conventions reports zero errors and one inherited debt-length warning. The large open queue still exceeds the #5239 intake hold, and the PR remains generic without title-specific evidence; please keep the intake direction in mind when deciding whether to proceed.
MarcZX10 commented 2026-10-22 14:17:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T14:17:15Z.


Correction to my earlier follow-up: the paragraph referring to the large open queue and #5239 intake hold was not relevant and should not have been included. I withdraw that as a reason to delay this PR. The current intake direction does not bar this contribution. I refreshed the merge check against upstream/main at 329efe1bfd: #9571 merges cleanly with main (9 commits ahead, 143 behind), while a direct merge simulation with the still-open #9446 conflicts in Export.cpp and docs/dev/debt/libSceLibreSsl.md. Please coordinate and record the order as required by CONTRIBUTING; there is no main-branch conflict. The reviewed head remains 80516b407f, and the reported focused Windows and independent Linux suites cover the current CMAC sources. I did not run those runtime tests locally in this session.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6342993590 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9571#issuecomment-6342993590). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T14:17:15Z. --- Correction to my earlier follow-up: the paragraph referring to the large open queue and #5239 intake hold was not relevant and should not have been included. I withdraw that as a reason to delay this PR. The current intake direction does not bar this contribution. I refreshed the merge check against upstream/main at 329efe1bfdaff116c57cdf62718026ee4f5521ae: #9571 merges cleanly with main (9 commits ahead, 143 behind), while a direct merge simulation with the still-open #9446 conflicts in Export.cpp and docs/dev/debt/libSceLibreSsl.md. Please coordinate and record the order as required by CONTRIBUTING; there is no main-branch conflict. The reviewed head remains 80516b407fe27e434bb9e12075096f02b997e072, and the reported focused Windows and independent Linux suites cover the current CMAC sources. I did not run those runtime tests locally in this session.
MarcZX10 commented 2026-10-29 08:45:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T08:45:04Z.

Review: APPROVED


Re-reviewed exact head 463e6902ad8b9614e660410c8cb43bdcddf558c6 after its main merge. The current-main merge preview is clean; the effective PR delta remains the previously reviewed LibreSSL implementation and tests, with the debt count refreshed to include the merged exports. The exact-head Windows workflow passes, while Linux/product jobs are skipped. I did not rerun the LibreSSL CTest targets locally; this approval relies on the prior source/test review plus the author’s report that the merge added no other changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5694978493 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9571#pullrequestreview-5694978493). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T08:45:04Z. **Review:** APPROVED --- Re-reviewed exact head `463e6902ad8b9614e660410c8cb43bdcddf558c6` after its main merge. The current-main merge preview is clean; the effective PR delta remains the previously reviewed LibreSSL implementation and tests, with the debt count refreshed to include the merged exports. The exact-head Windows workflow passes, while Linux/product jobs are skipped. I did not rerun the LibreSSL CTest targets locally; this approval relies on the prior source/test review plus the author’s report that the merge added no other changes.
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!9571
No description provided.