diff options
author | Shelley Vohr <shelley.vohr@gmail.com> | 2021-06-16 09:11:56 +0200 |
---|---|---|
committer | Shelley Vohr <shelley.vohr@gmail.com> | 2021-06-30 10:14:17 +0200 |
commit | 5830449a45d65dd7cb26514faabdbf3c65897811 (patch) | |
tree | 7510f5a343d2c8c12d93888511a4f7b3705dd0dc /test/parallel | |
parent | f179eb01afc9d2ca136a80bcf5d5533c9115107b (diff) | |
download | node-new-5830449a45d65dd7cb26514faabdbf3c65897811.tar.gz |
crypto: use compatible ecdh function
PR-URL: https://github.com/nodejs/node/pull/39054
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'test/parallel')
-rw-r--r-- | test/parallel/test-crypto-ecdh-convert-key.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-crypto-ecdh-convert-key.js b/test/parallel/test-crypto-ecdh-convert-key.js index f4d5a651ed..c0046099df 100644 --- a/test/parallel/test-crypto-ecdh-convert-key.js +++ b/test/parallel/test-crypto-ecdh-convert-key.js @@ -117,7 +117,7 @@ if (getCurves().includes('secp256k1')) { // rather than Node's generic error message. const badKey = 'f'.repeat(128); assert.throws( - () => ECDH.convertKey(badKey, 'secp256k1', 'hex', 'hex', 'compressed'), + () => ECDH.convertKey(badKey, 'secp521r1', 'hex', 'hex', 'compressed'), /Failed to convert Buffer to EC_POINT/); // Next statement should not throw an exception. |