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

Function verifyImpl

lib/internal/crypto/webcrypto.js:1225–1235  ·  view source on GitHub ↗
(algorithm, key, signature, data)

Source from the content-addressed store, hash-verified

1223}
1224
1225function verifyImpl(algorithm, key, signature, data) {
1226 const prefix = prepareSubtleMethod(this, 'verify', arguments.length, 4);
1227 let i = 0;
1228 algorithm = convertSubtleArgument(
1229 prefix, 'AlgorithmIdentifier', algorithm, i++);
1230 key = convertSubtleArgument(prefix, 'CryptoKey', key, i++);
1231 signature = convertSubtleArgument(prefix, 'BufferSource', signature, i++);
1232 data = convertSubtleArgument(prefix, 'BufferSource', data, i++);
1233
1234 return signVerify(algorithm, key, data, signature);
1235}
1236
1237function cipherOrWrap(mode, normalizedAlgorithm, key, data) {
1238 // While WebCrypto allows for larger input buffer sizes, we limit

Callers

nothing calls this directly

Calls 3

prepareSubtleMethodFunction · 0.85
convertSubtleArgumentFunction · 0.85
signVerifyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…