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

hmac: use EVP_PKEY_new_raw_private_key() if available #538

Merged
merged 1 commit into from
Sep 2, 2022

Commits on Sep 2, 2022

  1. hmac: use EVP_PKEY_new_raw_private_key() if available

    Current OpenSSL 3.0.x release has a regression with zero-length MAC
    keys. While this issue should be fixed in a future release of OpenSSL,
    we can use EVP_PKEY_new_raw_private_key() in place of the problematic
    EVP_PKEY_new_mac_key() to avoid the issue. OpenSSL 3.0's man page
    recommends using it regardless:
    
    > EVP_PKEY_new_mac_key() works in the same way as
    > EVP_PKEY_new_raw_private_key().  New applications should use
    > EVP_PKEY_new_raw_private_key() instead.
    
    Fixes ruby#369 (comment)
    rhenium committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    4293f18 View commit details
    Browse the repository at this point in the history