feat(libSceLibreSsl3): name and implement four inventory NIDs #15831
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15831"
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-04T18:32:16Z.
What
The 13.60 inventory names four NIDs that
libSceLibreSsl3still exported only asUnknown_*placeholders. This names and implements them:RSA_bits(3KZ-L4y1gak) returns the bit length of the RSA modulus through libSceLibreSsl'sBN_num_bits, or 0 when the key has no modulus. A null key throws.BN_is_negative(AiNud8LR8B4) returns the BIGNUM sign bit. A null value throws.EVP_CIPHER_nid(aLdgrI2jAF0) returns thenidat offset 0 of the 80-byteEVP_CIPHER. A null cipher throws.ERR_load_ERR_strings(pdxCm9+CCc4) is a no-op, matching the existingERR_load_crypto_stringsin this library: the error-string table is not modelled.The
Unknown_*stubs and theirAPS5_EXPORTaliases leaveAdditionalExports.cpp; the names and real signatures are declared once ininclude/Api.hpp; the code is in newsrc/InventoryNames.cppwith a newtests/InventoryNames.cppregistered asguest_libressl3_inventory_names.docs/dev/debt/libSceLibreSsl3.mdloses the four NID-only rows (125 to 121 callable exports, 116 named and 9 to 5 NID-only) and gains one Functional entry for the unverified PS5 ABI: null keys and ciphers throw where LibreSSL dereferences them, a null RSA modulus returns 0, and the error-string loader does not populate a table. The branch is merged with currentmain364ceeba2f; the inventory counts were recalculated on the merged tree (107 unimplemented callable exports = 102 named and 5 NID-only).Tested
Linux x86-64 (CachyOS, GCC 16.2.1), Release,
BUILD_TESTING=ON, merged tree0a131c2c9d:guest_libressl3_inventory_namescovers the modulus bit length (64 for0x8000000000000001), a missing modulus, both sign values, the cipher nid and the four null/loader paths.ctest --test-dir build -R '^guest_libressl3_inventory_names$' --output-on-failure: 1/1 passed.python3 tools/check_conventions.py --base origin/main: passed.python3 tools/pr_overlap.py --branch pr-15831 --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 these exportsNotImplemented_nid_no_patch).mdfiles or images added to the repository