Skip to content

Commit 6d05b78

Browse files
committed
fixup! crypto: add argon2() and argon2Sync() methods
1 parent 6db8774 commit 6d05b78

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

benchmark/crypto/argon2.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
'use strict';
22

33
const common = require('../common.js');
4+
const { hasOpenSSL } = require('../../test/common/crypto.js');
45
const assert = require('node:assert');
56
const {
67
argon2,
78
argon2Sync,
89
randomBytes,
910
} = require('node:crypto');
1011

12+
if (!hasOpenSSL(3, 2)) {
13+
console.log('Skipping: Argon2 requires OpenSSL >= 3.2');
14+
process.exit(0);
15+
}
16+
1117
const bench = common.createBenchmark(main, {
1218
mode: ['sync', 'async'],
1319
algorithm: ['argon2d', 'argon2i', 'argon2id'],

0 commit comments

Comments
 (0)