MCPcopy Create free account
hub / github.com/nodejs/node / Sign

Function Sign

lib/internal/crypto/sig.js:54–62  ·  view source on GitHub ↗
(algorithm, options)

Source from the content-addressed store, hash-verified

52const constants = internalBinding('constants').crypto;
53
54function Sign(algorithm, options) {
55 if (!(this instanceof Sign))
56 return new Sign(algorithm, options);
57 validateString(algorithm, 'algorithm');
58 this[kHandle] = new _Sign();
59 this[kHandle].init(algorithm);
60
61 FunctionPrototypeCall(Writable, this, options);
62}
63
64ObjectSetPrototypeOf(Sign.prototype, Writable.prototype);
65ObjectSetPrototypeOf(Sign, Writable);

Callers 1

Calls 1

initMethod · 0.45

Tested by

no test coverage detected