Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! crypto: discover hashes from OpenSSL providers
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
  • Loading branch information
panva committed Aug 23, 2026
commit ac4548fc4a181f7a29440f35714c2e4c8fc0deba
3 changes: 1 addition & 2 deletions src/crypto/crypto_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,8 @@ const EVP_MD* GetDigestImplementation(

#if NCRYPTO_USE_OPENSSL3_PROVIDER
Local<Object> cache = algorithm_cache.As<Object>();
const bool cache_invalidated = SynchronizeHashCache(env, cache);
int32_t cache_id = cache_id_val.As<Int32>()->Value();
if (!cache_invalidated && cache_id != -1) {
if (cache_id != -1) {
// Alias already cached, return the cached EVP_MD*.
if (const EVP_MD* md = GetCachedMDByID(env, cache_id, cache)) return md;
}
Expand Down
Loading