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

Function main

benchmark/crypto/aes-gcm-throughput.js:11–18  ·  view source on GitHub ↗
({ n, len, cipher })

Source from the content-addressed store, hash-verified

9});
10
11function main({ n, len, cipher }) {
12 const message = Buffer.alloc(len, 'b');
13 const key = crypto.randomBytes(keylen[cipher]);
14 const iv = crypto.randomBytes(12);
15 const associate_data = Buffer.alloc(16, 'z');
16 bench.start();
17 AEAD_Bench(cipher, message, associate_data, key, iv, n, len);
18}
19
20function AEAD_Bench(cipher, message, associate_data, key, iv, n, len) {
21 const written = n * len;

Callers

nothing calls this directly

Calls 3

AEAD_BenchFunction · 0.85
allocMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…