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

Function symmetricVectors

test/parallel/test-crypto-key-objects-to-crypto-key.js:99–109  ·  view source on GitHub ↗
(name, usages)

Source from the content-addressed store, hash-verified

97}
98
99function symmetricVectors(name, usages) {
100 const vectors = [];
101 for (const length of [128, 192, 256]) {
102 vectors.push(vector(
103 secretKey(length),
104 name,
105 usages,
106 { length }));
107 }
108 return vectors;
109}
110
111function chacha20Poly1305Vectors() {
112 return [

Calls 3

secretKeyFunction · 0.85
vectorFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected