Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

HKDF and TLS1-PRF EVP_PKEY key exchange wrapper #96

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mamckee
Copy link
Collaborator

@mamckee mamckee commented Nov 14, 2024

HKDF and TLS1-PRF were available in OpenSSL 1.1.1 through the EVP_PKEY API. OpenSSL 3 introduced the EVP_KDF API, but some callers may still be using the EVP_PKEY API for KDF and TLS1-PRF. We have previously relied on the default provider's key exchange wrapper for these KDFs, which exposes them to the EVP_PKEY API. If the default provider is not enabled, or the caller sets "fips=yes", then the KDFs are no longer available to EVP_PKEY.

This PR adds a similar wrapper in the SymCrypt provider. Only TLS1-PRF and HKDF are needed for existing callers using EVP_PKEY functions. All other KDFs were not supported in OpenSSL 1.1.1, and new applications using those KDFs should use the EVP_KDF API.

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.

1 participant