feat(libSceLibreSsl3): implement AES_wrap_key #15854
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15854"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by fishingpvalues on 2026-11-04T19:49:44Z.
What
Implements
AES_wrap_key(GjO5Ap3E-t4), previously exported only asUnknown_GjO5Ap3E_minus_t4, following RFC 3394:A6A6A6A6A6A6A6A6whenivis null, six rounds and the 64-bit counter XORed into the A block, matching OpenSSL'sAES_wrap_key;AES_encrypt, so no AES implementation is duplicated;inlen + 8and writesA | R[1..n];The
Unknown_*stub and itsAPS5_EXPORTalias leaveAdditionalExports.cpp; the real signature is declared once ininclude/Api.hpp; the code is in newsrc/AesWrap.cppwith newtests/AesWrap.cppregistered asguest_libressl3_aes_wrap.docs/dev/debt/libSceLibreSsl3.mdloses the NID-only row (139 to 138 callable exports, 129 named and 10 to 9 NID-only) and gains one Functional entry for the unverified PS5 ABI, custom-IV handling and console behaviour. The branch was rebased onto currentmain4ab649f4d8; the inventory counts were recalculated on that base.Tested
Linux x86-64 (CachyOS, GCC 16.2.1), Release,
BUILD_TESTING=ON, basemain4ab649f4d8:guest_libressl3_aes_wrapchecks the RFC 3394 128-bit known-answer vector (1FA68B0A…71D2CFE5), first verifies the parent AES-128 ECB vector (69C4E0D8…70B4C55A), and covers the short and non-multiple-of-8 rejections and the null-output throw.ctest --test-dir build -R '^guest_libressl3_aes_wrap$' --output-on-failure: 1/1 passed.python3 tools/check_conventions.py --base origin/main: passed.python3 tools/pr_overlap.py --branch pr-15854 --jobs 4: exit 2 only because it cannot confirm sharedAdditionalExports.cpp/Api.hpp/debt files from conflicting PR heads; it reports no same exports.Checklist
main; no other open PR implements this exportNotImplemented_nid_no_patch).mdfiles or images added to the repositoryPull request closed