MCPcopy Create free account
hub / github.com/nodejs/node / getKeyFileName

Function getKeyFileName

test/parallel/test-crypto-pqc-key-objects-ml-kem.js:17–19  ·  view source on GitHub ↗
(type, suffix)

Source from the content-addressed store, hash-verified

15const fixtures = require('../common/fixtures');
16
17function getKeyFileName(type, suffix) {
18 return `${type.replaceAll('-', '_')}_${suffix}.pem`;
19}
20
21for (const [asymmetricKeyType, pubLen] of [
22 ['ml-kem-512', 800], ['ml-kem-768', 1184], ['ml-kem-1024', 1568],

Calls

no outgoing calls

Tested by

no test coverage detected