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

Function preparePublicOrPrivateKey

lib/internal/crypto/keys.js:637–639  ·  view source on GitHub ↗
(key, name)

Source from the content-addressed store, hash-verified

635}
636
637function preparePublicOrPrivateKey(key, name) {
638 return prepareAsymmetricKey(key, kConsumePublic, name);
639}
640
641function prepareSecretKey(key, encoding, bufferOnly = false) {
642 if (!bufferOnly) {

Callers 5

encapsulateFunction · 0.85
rsaFunctionForFunction · 0.85
sig.jsFile · 0.85
verifyOneShotFunction · 0.85
diffieHellmanFunction · 0.85

Calls 1

prepareAsymmetricKeyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…