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

Function secretKey

test/parallel/test-crypto-key-objects-to-crypto-key.js:56–58  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

54}
55
56function secretKey(length) {
57 return createSecretKey(randomBytes(length >> 3));
58}
59
60function vector(
61 keyObject,

Callers 4

symmetricVectorsFunction · 0.85
chacha20Poly1305VectorsFunction · 0.85
hmacVectorsFunction · 0.85
kmacVectorsFunction · 0.85

Calls 2

createSecretKeyFunction · 0.85
randomBytesFunction · 0.85

Tested by

no test coverage detected