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

Function ECDH

lib/internal/crypto/diffiehellman.js:233–239  ·  view source on GitHub ↗
(curve)

Source from the content-addressed store, hash-verified

231
232
233function ECDH(curve) {
234 if (!(this instanceof ECDH))
235 return new ECDH(curve);
236
237 validateString(curve, 'curve');
238 this[kHandle] = new _ECDH(curve);
239}
240
241ECDH.prototype.computeSecret = DiffieHellman.prototype.computeSecret;
242ECDH.prototype.setPrivateKey = DiffieHellman.prototype.setPrivateKey;

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…