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

Function wrapKey

lib/internal/crypto/keygen.js:84–90  ·  view source on GitHub ↗
(key, ctor)

Source from the content-addressed store, hash-verified

82}
83
84function wrapKey(key, ctor) {
85 if (typeof key === 'string' ||
86 isArrayBufferView(key) ||
87 isJwk(key))
88 return key;
89 return new ctor(key);
90}
91
92function generateKeyPair(type, options, callback) {
93 if (typeof options === 'function') {

Callers 4

generateKeyPairFunction · 0.70
handleErrorFunction · 0.70
handleGenerateKeyErrorFunction · 0.70
generateKeyFunction · 0.70

Calls 1

isJwkFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…