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

Method export

lib/internal/crypto/keys.js:250–261  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

248 }
249
250 export(options) {
251 const handle = getKeyObjectHandle(this);
252 if (options !== undefined) {
253 validateObject(options, 'options');
254 validateOneOf(
255 options.format, 'options.format', [undefined, 'buffer', 'jwk']);
256 if (options.format === 'jwk') {
257 return handle.exportJwk({}, false);
258 }
259 }
260 return handle.export();
261 }
262 }
263
264 class AsymmetricKeyObject extends KeyObject {

Callers 15

mlDsaExportKeyFunction · 0.45
mlKemExportKeyFunction · 0.45
exportKeyRawSecretFunction · 0.45
ecExportKeyFunction · 0.45
cfrgExportKeyFunction · 0.45
normalizeKeyLengthFunction · 0.45
exportMethod · 0.45
exportMethod · 0.45
rsaExportKeyFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 1

getKeyObjectHandleFunction · 0.85

Tested by 1

testFunction · 0.36