feat(libSceLibreSsl3): implement EVP_PKEY_base_id #17237
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17237"
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-08T16:05:22Z.
What
EVP_PKEY_base_idmaps the 32-byteEVP_PKEYtype through the parentEVP_PKEY_type: RSA2 (19) reports 6, the DSA aliases (66, 67, 70, 113) report 116, known types map to themselves and an unknown type reports 0. A null key reports 0.mainalready implementsEVP_PKEY_get0_EC_KEY(src/Key.cpp), so this PR no longer duplicates it.tests/PkeyBaseAndEc.cppcovers 408, 6, 19, 66, 1000000 and null. The debt entry is one line and the inventory is 116 unimplemented exports = 107 named + 9 NID-only.Tested
Linux x86-64 (CachyOS, GCC 16.2.1), Release,
BUILD_TESTING=ON:guest_libressl3_pkey_base_and_ec: 1/1 passed.python3 tools/check_conventions.py --base origin/main: passed.Checklist
main; no other open PR implementsEVP_PKEY_base_idNotImplemented_nid_no_patch).mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-08T16:27:15Z.
Review: COMMENTED
Read against the LibreSSL in
3rdparty/libressl-openbsd(078b3d1d), which is what this module follows. I haven't built or run this branch.EVP_PKEY_base_idreturnskey->typeunchanged. LibreSSL (evp/p_lib.c:489) returnsEVP_PKEY_type(pkey->type), which maps alias types through the ameth table.EVP_PKEY_RSA2(19) gives 6 there and 19 here. The DSA aliases (66, 67, 70, 113) give 116 there. An unknown type gives 0 there and itself here. The test uses only 408 and 6, which map to themselves.EVP_PKEY_get0_EC_KEYon a key that isn't EC returns null without queueingEVP_R_EXPECTING_A_EC_KEY, which LibreSSL does (evp/p_lib.c).Debt file: compared with
main, this branch'sdocs/dev/debt/libSceLibreSsl3.mddrops aBIO_methline thatmainnow has (src/BioMethod.cpp, #15761), and it repeats the new bullet on two consecutive lines. It looks rebased from an older copy of the file.Pull request closed