({ n, len, cipher })
| 9 | }); |
| 10 | |
| 11 | function 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 | |
| 20 | function AEAD_Bench(cipher, message, associate_data, key, iv, n, len) { |
| 21 | const written = n * len; |
nothing calls this directly
no test coverage detected
searching dependent graphs…