Commit Graph
3 Commits
Author SHA1 Message Date
9327713d3a fix(libSceLibreSsl): give EC keys libSceLibreSsl3's reference layout
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]>
2026-11-03 09:14:47 +01:00
msbutt1 f1f3ba8ed4 feat(libSceLibreSsl3): implement RSA_up_ref 2026-10-30 04:38:39 -06:00
atharvjairath 5255577954 feat(libressl3): retain EVP and EC key references 2026-10-27 03:31:01 +05:30