Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

OpenSSL 3.3: proper public key loading for EC keys #6613

Merged

Conversation

maxtropets
Copy link
Collaborator

Check #6594 for more details.

Long story short, I was not able to figure out why we used d2i_PublicKey, as I didn't really find an example of it in OpenSSL to be used together with *_from_data functions.

I've tweaked the params to pass the raw key data there and simply called EVP_PKEY_fromdata with EVP_PKEY_PUBLIC_KEY selection, and it seems to work just well.

@maxtropets maxtropets requested a review from a team November 5, 2024 13:25
@maxtropets maxtropets force-pushed the f/6594-openssl-proper-ec-key-load branch from ebe8f05 to b355713 Compare November 5, 2024 13:26
@maxtropets maxtropets self-assigned this Nov 5, 2024
@maxtropets maxtropets added the run-long-test Run Long Test job label Nov 5, 2024
Co-authored-by: Eddy Ashton <ashton.eddy@gmail.com>
@achamayou achamayou added this pull request to the merge queue Nov 5, 2024
@achamayou achamayou added auto-backport Automatically backport this PR to LTS branch 5.x-todo PRs which should be backported to 5.x labels Nov 5, 2024
Merged via the queue into microsoft:main with commit dad86f8 Nov 5, 2024
29 checks passed
@achamayou achamayou deleted the f/6594-openssl-proper-ec-key-load branch November 5, 2024 18:28
ghost pushed a commit that referenced this pull request Nov 5, 2024
Co-authored-by: Eddy Ashton <ashton.eddy@gmail.com>
(cherry picked from commit dad86f8)
@ghost ghost added the backported This PR was successfully backported to LTS branch label Nov 5, 2024
achamayou pushed a commit that referenced this pull request Nov 6, 2024
… EC keys (#6613) (#6614)

Co-authored-by: Max <maxtropets@microsoft.com>
@maxtropets maxtropets linked an issue Nov 6, 2024 that may be closed by this pull request
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
5.x-todo PRs which should be backported to 5.x auto-backport Automatically backport this PR to LTS branch backported This PR was successfully backported to LTS branch run-long-test Run Long Test job
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix symcrypt crash (SIGSGV) in unit tests
3 participants