From e29de76dc1d86a25b3fe6d20c7dc21c78e8c9ec2 Mon Sep 17 00:00:00 2001 From: larabr <7375870+larabr@users.noreply.github.com> Date: Thu, 23 Jul 2020 19:21:34 +0200 Subject: [PATCH] Use correct algorithm in ECC validation tests --- test/crypto/validate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/crypto/validate.js b/test/crypto/validate.js index e9fcc3bd..9ba8fae0 100644 --- a/test/crypto/validate.js +++ b/test/crypto/validate.js @@ -95,7 +95,7 @@ describe('EdDSA parameter validation', function() { expect(valid).to.be.false; const infQ = new Uint8Array(Q.length); - valid = await openpgp.crypto.publicKey.elliptic.ecdh.validateParams(oid, infQ, seed); + valid = await openpgp.crypto.publicKey.elliptic.eddsa.validateParams(oid, infQ, seed); expect(valid).to.be.false; }); }); @@ -108,7 +108,7 @@ describe('ECC curve validation', function() { 'ed25519' ); const { oid, Q, seed } = openpgp.crypto.publicKey.elliptic.eddsa.parseParams(keyParams); - const valid = await openpgp.crypto.publicKey.elliptic.ecdsa.validateParams(oid, Q, seed); + const valid = await openpgp.crypto.publicKey.elliptic.ecdh.validateParams(oid, Q, seed); expect(valid).to.be.false; });