mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-06 13:30:00 +00:00
libSceLibreSsl3 forwards EC_KEY_new, EC_KEY_new_by_curve_name and EC_KEY_free here, while its EC_KEY_up_ref increments the counter at offset 48 of LibreSSL 4.0.0's 64-byte EC_KEY. On the 8-byte keys of the previous commit, that write lands past the end of the key. Keys now have that layout and LibreSSL 2.5.4 EC_KEY_new's defaults: version 1, uncompressed conversion form, the group in its group slot and the reference count, starting at one, at offset 48. EC_KEY_free decrements it atomically and frees the key at zero or below, as LibreSSL does. libSceLibreSsl3's interface and code are unchanged. Co-authored-by: Ahmad Mujahid <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>