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

Function handleGenerateKeyError

lib/internal/crypto/keygen.js:407–416  ·  view source on GitHub ↗
(ret)

Source from the content-addressed store, hash-verified

405}
406
407function handleGenerateKeyError(ret) {
408 if (ret === undefined)
409 return; // async
410
411 const { 0: err, 1: key } = ret;
412 if (err !== undefined)
413 throw err;
414
415 return wrapKey(key, SecretKeyObject);
416}
417
418function generateKey(type, options, callback) {
419 if (typeof options === 'function') {

Callers 2

generateKeyFunction · 0.85
generateKeySyncFunction · 0.85

Calls 1

wrapKeyFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…