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

Function hmacSignVerify

lib/internal/crypto/mac.js:168–177  ·  view source on GitHub ↗
(key, data, algorithm, signature)

Source from the content-addressed store, hash-verified

166}
167
168function hmacSignVerify(key, data, algorithm, signature) {
169 const mode = signature === undefined ? kSignJobModeSign : kSignJobModeVerify;
170 return jobPromise(() => new HmacJob(
171 kCryptoJobWebCrypto,
172 mode,
173 normalizeHashName(getCryptoKeyAlgorithm(key).hash.name),
174 getCryptoKeyHandle(key),
175 data,
176 signature));
177}
178
179function kmacSignVerify(key, data, algorithm, signature) {
180 const mode = signature === undefined ? kSignJobModeSign : kSignJobModeVerify;

Callers

nothing calls this directly

Calls 4

jobPromiseFunction · 0.85
normalizeHashNameFunction · 0.85
getCryptoKeyAlgorithmFunction · 0.85
getCryptoKeyHandleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…