From e548c4a3c602b87a2b01756c7eb82e125030cfb2 Mon Sep 17 00:00:00 2001 From: CPlusSharp Date: Fri, 12 Nov 2021 21:39:02 +0100 Subject: [PATCH 1/3] fix ecdsa unit test includes add missing base64x-1.1.js --- test/qunit-do-ecdsamod-unsupport.html | 1 + test/qunit-do-ecdsamod.html | 1 + test/qunit-do-ecparam.html | 1 + 3 files changed, 3 insertions(+) diff --git a/test/qunit-do-ecdsamod-unsupport.html b/test/qunit-do-ecdsamod-unsupport.html index 24833682..904c24f7 100755 --- a/test/qunit-do-ecdsamod-unsupport.html +++ b/test/qunit-do-ecdsamod-unsupport.html @@ -32,6 +32,7 @@ + diff --git a/test/qunit-do-ecdsamod.html b/test/qunit-do-ecdsamod.html index 2ea270ff..f6beac76 100755 --- a/test/qunit-do-ecdsamod.html +++ b/test/qunit-do-ecdsamod.html @@ -32,6 +32,7 @@ + diff --git a/test/qunit-do-ecparam.html b/test/qunit-do-ecparam.html index 00768e44..c64c5156 100755 --- a/test/qunit-do-ecparam.html +++ b/test/qunit-do-ecparam.html @@ -32,6 +32,7 @@ + From f2037281239546c585f028a710c12391244b3e6b Mon Sep 17 00:00:00 2001 From: CPlusSharp Date: Fri, 12 Nov 2021 18:53:30 +0100 Subject: [PATCH 2/3] Support P-521 curve --- sample/sample-ecdsa.html | 1 + src/asn1x509-1.0.js | 1 + src/crypto-1.1.js | 3 +- src/ecdsa-modified-1.0.js | 13 ++++++--- src/ecparam-1.0.js | 3 +- src/keyutil-1.0.js | 2 +- test/qunit-do-ecdsamod-s.html | 2 +- test/qunit-do-ecdsamod-unsupport.html | 2 +- test/qunit-do-ecdsamod.html | 41 ++++++++++++++++++++++++++- test/qunit-do-ecparam.html | 23 ++++++++++++++- 10 files changed, 80 insertions(+), 11 deletions(-) diff --git a/sample/sample-ecdsa.html b/sample/sample-ecdsa.html index 0e10ba7f..f8b375d2 100755 --- a/sample/sample-ecdsa.html +++ b/sample/sample-ecdsa.html @@ -84,6 +84,7 @@

(Step1) choose supported EC curve name and generate key pair