diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2021-01-13 11:24:51 +0100 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2021-01-13 11:24:51 +0100 |
commit | 5d53e1f1c66bcde7c48cae02ca9ee0ffd0d9bebc (patch) | |
tree | 96806258fcf080b96d04fe747aa5518395385854 | |
parent | 6b5178292560b59543cddf7133761a699575909a (diff) | |
download | node-new-update-openssl-3.x.tar.gz |
test: increase modulus size to 512update-openssl-3.x
This commit increased the modulus size to 512 which is the minimum for
OpenSSL 3.0. Without this change there will an error from OpenSSL 3.0:
error:0280007E:Diffie-Hellman routines::modulus too small
-rw-r--r-- | test/parallel/test-crypto-secure-heap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-crypto-secure-heap.js b/test/parallel/test-crypto-secure-heap.js index 2a851019b5..64faa83a3e 100644 --- a/test/parallel/test-crypto-secure-heap.js +++ b/test/parallel/test-crypto-secure-heap.js @@ -26,7 +26,7 @@ if (process.argv[2] === 'child') { assert.strictEqual(a.used, 0); { - const dh1 = createDiffieHellman(common.hasFipsCrypto ? 1024 : 256); + const dh1 = createDiffieHellman(common.hasFipsCrypto ? 1024 : 512); const p1 = dh1.getPrime('buffer'); const dh2 = createDiffieHellman(p1, 'buffer'); const key1 = dh1.generateKeys(); |