Skip to content

Add EVP_PKEY KEM operations#1062

Merged
rhenium merged 1 commit into
ruby:masterfrom
bdewater-thatch:pkey-kem-api
Jun 22, 2026
Merged

Add EVP_PKEY KEM operations#1062
rhenium merged 1 commit into
ruby:masterfrom
bdewater-thatch:pkey-kem-api

Conversation

@bdewater-thatch

@bdewater-thatch bdewater-thatch commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

I was poking around net-ssh to add support for OpenSSH’s post-quantum hybrid key exchange mlkem768x25519-sha256, but for that to work it needs access to these APIs because it uses ML-KEM-768 directly (not HPKE).

OpenSSL docs:

@rhenium rhenium left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! It looks good to me overall, with a few minor comments below.

Comment thread ext/openssl/extconf.rb Outdated
Comment thread test/openssl/test_pkey.rb Outdated
Comment thread ext/openssl/ossl_pkey.c
@bdewater-thatch

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback @rhenium, I implemented your suggestions.

@rhenium rhenium left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@rhenium rhenium merged commit ed7e7bb into ruby:master Jun 22, 2026
93 of 94 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants