MCPcopy Index your code
hub / github.com/nodejs/node / getCachedHashId

Function getCachedHashId

lib/internal/crypto/util.js:125–128  ·  view source on GitHub ↗
(algorithm)

Source from the content-addressed store, hash-verified

123}
124
125function getCachedHashId(algorithm) {
126 const result = getHashCache()[algorithm];
127 return result === undefined ? -1 : result;
128}
129
130const getCiphers = cachedResult(() => filterDuplicateStrings(_getCiphers()));
131const getHashes = cachedResult(() => filterDuplicateStrings(_getHashes()));

Callers 2

HashFunction · 0.85
hashFunction · 0.85

Calls 1

getHashCacheFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…