We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6db8774 commit 6d05b78Copy full SHA for 6d05b78
benchmark/crypto/argon2.js
@@ -1,13 +1,19 @@
1
'use strict';
2
3
const common = require('../common.js');
4
+const { hasOpenSSL } = require('../../test/common/crypto.js');
5
const assert = require('node:assert');
6
const {
7
argon2,
8
argon2Sync,
9
randomBytes,
10
} = require('node:crypto');
11
12
+if (!hasOpenSSL(3, 2)) {
13
+ console.log('Skipping: Argon2 requires OpenSSL >= 3.2');
14
+ process.exit(0);
15
+}
16
+
17
const bench = common.createBenchmark(main, {
18
mode: ['sync', 'async'],
19
algorithm: ['argon2d', 'argon2i', 'argon2id'],
0 commit comments