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

Function hmacVectors

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

Source from the content-addressed store, hash-verified

164}
165
166function hmacVectors() {
167 const vectors = [];
168 for (const length of [128, 192, 256]) {
169 const key = secretKey(length);
170 for (const hash of hashes) {
171 vectors.push(vector(
172 key,
173 { name: 'HMAC', hash },
174 ['sign', 'verify'],
175 { length }));
176 }
177 }
178 return vectors;
179}
180
181function kmacVectors(name) {
182 return [

Calls 3

secretKeyFunction · 0.85
vectorFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected