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

Function createSecretKey

lib/internal/crypto/keys.js:668–673  ·  view source on GitHub ↗
(key, encoding)

Source from the content-addressed store, hash-verified

666}
667
668function createSecretKey(key, encoding) {
669 key = prepareSecretKey(key, encoding, true);
670 const handle = new KeyObjectHandle();
671 handle.init(kKeyTypeSecret, key);
672 return new SecretKeyObject(handle);
673}
674
675function createPublicKey(key) {
676 const { format, type, data, passphrase, namedCurve } =

Calls 2

prepareSecretKeyFunction · 0.85
initMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…