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

Function signImpl

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

Source from the content-addressed store, hash-verified

1208}
1209
1210function signImpl(algorithm, key, data) {
1211 const prefix = prepareSubtleMethod(this, 'sign', arguments.length, 3);
1212 let i = 0;
1213 algorithm = convertSubtleArgument(
1214 prefix, 'AlgorithmIdentifier', algorithm, i++);
1215 key = convertSubtleArgument(prefix, 'CryptoKey', key, i++);
1216 data = convertSubtleArgument(prefix, 'BufferSource', data, i++);
1217
1218 return signVerify(algorithm, key, data);
1219}
1220
1221function verify(algorithm, key, signature, data) {
1222 return callSubtleCryptoMethod(verifyImpl, this, arguments);

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…