feat(libSceLibreSsl3): implement EVP_PKEY_new_mac_key #19093
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19093"
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 consolelogout on 2026-11-12T18:56:59Z.
What
Implements
EVP_PKEY_new_mac_keyfor HMAC keys on top of #17528's native PKEY method table: anHmacAsn1Method(compare, size, free from LibreSSL 4.0.0hm_ameth.c) registered inFindNativePkeyAsn1Method_nid_no_patchandIsNativePkeyMethod_nid_no_patch, soEVP_PKEY_size,EVP_PKEY_cmpandEVP_PKEY_freework on the key. Other key types return null as in LibreSSL 4.0.0; the missing error-queue reasons and empty method slots are in the debt fragment. Agreed with the #17528 author in https://github.com/boykopovar/AnyPS5/pull/17528 that HMAC keys go in this separate PR. #17528 has since merged; this branch merges current main. Debt changes are in a fragment, following #17217Tested
Linux (Ubuntu on WSL, GCC 15.2.0, Debug), at
2bef13fd25(on mainf6a73040e1): the full build completes, andctest --test-dir build -R libressl3passes 73/73, including the newguest_libressl3_pkey_mac_key(key contents, size 64, compare equal/different, all keys freed with no leaked allocations, rejected types and lengths, allocation failures). c1b3r-p3d1a also reported the test passing in a Release build with GCC 13.3.0. Windows not tested.check_conventions.py --base upstream/mainreports one length warning on the pending-exports entry in the debt fragment, which was already over the limit; only its count changed.pr_overlap.pyfailed closed on conflicting PRs; I searched each listed PR's diff and none implementsEVP_PKEY_new_mac_keyor HMAC keys.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)