test(libSceLibreSsl3): pin the RFC 3610 packet vector for AES-CCM #16541

Merged
MarcZX10 merged 1 commit from upstream-pr/16541 into main 2026-11-10 19:06:49 +00:00
MarcZX10 commented 2026-11-07 02:24:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-07T02:24:43Z.


What

  • Implements EVP_aes_128_ccm in libSceLibreSsl (NID 896): RFC 3610 / NIST SP 800-38C CCM, 12-byte IV, FIPS and CCM flags.
  • feat(libSceLibreSsl) commit: the CCM cipher. The construction follows LibreSSL 2.5.4 e_aes.c; the CRYPTO_ccm128 helpers are not vendored, so the state is the port's own.
  • test(libSceLibreSsl) commit: pins the output to RFC 3610 packet 1 and NIST SP 800-38C example 1, expected values from Python cryptography.
  • docs(debt) commit: records the behaviour in docs/dev/debt/libSceLibreSsl.md. AAD is accepted in one call only (a second call returns -1); the context is 512 bytes with no EVP_CTRL_COPY; bad lengths and a failed tag check return -1. None of this is measured on a PS5.

Tested

  • Linux, BUILD-EXIT 0 for the head build of guest_libressl_evp_cipher_ctx, which contains the CCM test: Passed.
  • Only the head was built. The intermediate commits were not built one by one.
  • The stub-fails check was not run: the test was not run against the stub (it would need a second full build).
  • tools/check_conventions.py and git diff --check clean.
  • Not run on Windows or macOS.

Checklist

  • Based on current main; no other open PR implements EVP_aes_128_ccm
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; silent stubs are listed under Silent stubs in the library's technical debt file
  • No notes, investigation .md files or images added to the repository
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5197579182 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16541). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-07T02:24:43Z. --- ### What - Implements `EVP_aes_128_ccm` in libSceLibreSsl (NID 896): RFC 3610 / NIST SP 800-38C CCM, 12-byte IV, FIPS and CCM flags. - `feat(libSceLibreSsl)` commit: the CCM cipher. The construction follows LibreSSL 2.5.4 `e_aes.c`; the CRYPTO_ccm128 helpers are not vendored, so the state is the port's own. - `test(libSceLibreSsl)` commit: pins the output to RFC 3610 packet 1 and NIST SP 800-38C example 1, expected values from Python `cryptography`. - `docs(debt)` commit: records the behaviour in `docs/dev/debt/libSceLibreSsl.md`. AAD is accepted in one call only (a second call returns -1); the context is 512 bytes with no `EVP_CTRL_COPY`; bad lengths and a failed tag check return -1. None of this is measured on a PS5. ### Tested - Linux, `BUILD-EXIT 0` for the head build of `guest_libressl_evp_cipher_ctx`, which contains the CCM test: `Passed`. - Only the head was built. The intermediate commits were not built one by one. - The stub-fails check was not run: the test was not run against the stub (it would need a second full build). - `tools/check_conventions.py` and `git diff --check` clean. - Not run on Windows or macOS. ### Checklist - [x] Based on current `main`; no other open PR implements `EVP_aes_128_ccm` - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; silent stubs are listed under Silent stubs in the library's technical debt file - [x] No notes, investigation `.md` files or images added to the repository - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
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!16541
No description provided.