Add OpenSSL::KDF.derive to expose EVP_KDF in OpenSSL 3.0#906
Open
rhenium wants to merge 3 commits into
Open
Conversation
7ef5fbf to
cac4b64
Compare
|
Hey @rhenium, how is this PR going? With Rails 8.2 coming with default argon2 support, this PR would go quite the distance and remove the |
Add a helper function to make an array of OSSL_PARAM from Enumerable, which can be passed to OpenSSL 3.0's *_set_params() functions. In the next patch, we will use this with the EVP_KDF API to implement OpenSSL::KDF.derive.
cac4b64 to
9939e07
Compare
Expose EVP_KDF_derive() added in OpenSSL 3.0. The Argon2 password hashing algorithm added in OpenSSL 3.2 is available exclusively through this API. This is a low-level and minimum method to interact with the API. You will have to carefully read the relevant man pages to use this correctly.
9939e07 to
e10d958
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #892