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

Function getKeyFileName

test/parallel/test-webcrypto-export-import-ml-dsa.js:19–21  ·  view source on GitHub ↗
(type, suffix)

Source from the content-addressed store, hash-verified

17const fixtures = require('../common/fixtures');
18
19function getKeyFileName(type, suffix) {
20 return `${type.replaceAll('-', '_')}_${suffix}.pem`;
21}
22
23function toDer(pem) {
24 const der = pem.replace(/(?:-----(?:BEGIN|END) (?:PRIVATE|PUBLIC) KEY-----|\s)/g, '');

Calls

no outgoing calls

Tested by

no test coverage detected