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

crypto: use EVP_MD_fetch and cache EVP_MD for hashes #51034

Merged
merged 3 commits into from
Jan 5, 2024

Commits on Dec 11, 2023

  1. crypto: use EVP_MD_fetch and cache EVP_MD for hashes

    On OpenSSL 3, migrate from EVP_get_digestbyname() to EVP_MD_fetch()
    to get the implementation and use a per-Environment cache for it.
    The EVP_MDs are freed during Environment cleanup.
    
    Drive-by: declare the smart pointer for EVP_MD_CTX as EVPMDCtxPointer
    instead of EVPMDPointer to avoid confusion with EVP_MD pointers.
    joyeecheung committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    a1e07c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8245383 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e476dfc View commit details
    Browse the repository at this point in the history