Skip to content

Commit

Permalink
10.5.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Nov 21, 2021
1 parent 4af3e98 commit 4e2e229
Show file tree
Hide file tree
Showing 31 changed files with 1,966 additions and 1,789 deletions.
14 changes: 13 additions & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@

ChangeLog for jsrsasign

* Changes from 10.4.1 to next release
Add EC support for secp521r1 secp224r1 secp192r1
* Changes from 10.4.1 to 10.5.0
- Add EC support for secp521r1 secp224r1 secp192r1 (#521 #519)
Thank you indeed for @cplussharp 's great work.
- EC key length bugs for newly supported curves are fixed.
- src/ecdsa-modified: key length fixes
- src/ecparam.js: add keycharlen property
- src/asn1x509.js: add secp521r1 OID
- test/qunit-do-ecdsamod.html: all test code passed
- test/qunit-do-ecdsamod-unsupport.html: all test code passed
- test/qunit-do-ecdsamod-s.html: all test code passed
- test/qunit-do-ecdsamod-nisttv.html: added for NIST EC keygen test
- sample/sample-ecdsa.html: add P-521
- sample/sample-rsasign.html
- fix to trim non hexadecimal strings (#517)

Expand Down
8 changes: 4 additions & 4 deletions api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ <h2><a href="symbols/src/asn1x509-1.0.js.html">asn1x509-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.1.10 asn1x509 2.1.8 (2021-Feb-14)</dd>
<dd>jsrsasign 10.5.0 asn1x509 2.1.10 (2021-Nov-21)</dd>



Expand Down Expand Up @@ -694,7 +694,7 @@ <h2><a href="symbols/src/crypto-1.1.js.html">crypto-1.1.js</a></h2>


<dt class="heading">Version:</dt>
<dd>1.2.4 (2020-Jul-28)</dd>
<dd>jsrsasign 10.5.0 crypto 1.2.6 (2021-Nov-21)</dd>



Expand Down Expand Up @@ -732,7 +732,7 @@ <h2><a href="symbols/src/ecdsa-modified-1.0.js.html">ecdsa-modified-1.0.js</a></


<dt class="heading">Version:</dt>
<dd>jsrsasign 8.0.21 ecdsa-modified 1.1.4 (2020-Jul-24)</dd>
<dd>jsrsasign 10.5.0 ecdsa-modified 1.2.0 (2021-Nov-21)</dd>



Expand All @@ -751,7 +751,7 @@ <h2><a href="symbols/src/ecparam-1.0.js.html">ecparam-1.1.js</a></h2>


<dt class="heading">Version:</dt>
<dd>1.0.0 (2013-Jul-17)</dd>
<dd>jsrsasign 10.5.0 ecparam 1.0.1 (2021-Nov-21)</dd>



Expand Down
2 changes: 1 addition & 1 deletion api/symbols/KEYUTIL.html
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ <h1 class="classTitle">
NOTE1: As for RSA algoirthm, public exponent has fixed
value '0x10001'.
NOTE2: As for EC algorithm, supported names of curve are
secp256r1, secp256k1 and secp384r1.
secp256r1, secp256k1, secp384r1 and secp521r1.
NOTE3: DSA is not supported yet.


Expand Down
48 changes: 48 additions & 0 deletions api/symbols/KJUR.crypto.ECDSA.html
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,15 @@ <h1 class="classTitle">
</td>
</tr>

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/KJUR.crypto.ECDSA.html#generatePublicKeyHex">generatePublicKeyHex</a></b>()
</div>
<div class="description">generate public key for EC private key</div>
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
Expand Down Expand Up @@ -759,6 +768,7 @@ <h1 class="classTitle">
<li>secp256r1, NIST P-256, P-256, prime256v1 (*)</li>
<li>secp256k1 (*)</li>
<li>secp384r1, NIST P-384, P-384 (*)</li>
<li>secp521r1, NIST P-521, P-521 (*)</li>
</ul>
</p>

Expand Down Expand Up @@ -983,6 +993,44 @@ <h1 class="classTitle">



<hr />

<a name="generatePublicKeyHex"> </a>
<div class="fixedFont">

<span class="light">{String}</span>
<b>generatePublicKeyHex</b>()

</div>
<div class="description">
generate public key for EC private key


</div>



<pre class="code">var ec = new KJUR.crypto.ECDSA({'curve': 'secp256r1', 'prv': prvHex});
var pubhex = ec.generatePublicKeyHex(); // hexadecimal string of EC public key
var pub ec.getPublicKeyXYHex() &rarr; { x: '01bacf...', y: 'c3bc22...' }</pre>








<dl class="detailList">
<dt class="heading">Returns:</dt>

<dd><span class="light fixedFont">{String}</span> associative array of hexadecimal string of private and public key</dd>

</dl>




<hr />

<a name=".getName"> </a>
Expand Down
1 change: 1 addition & 0 deletions api/symbols/KJUR.crypto.Signature.html
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@ <h4>SUPPORTED ALGORITHMS AND PROVIDERS</h4>
<li>secp256k1</li>
<li>secp256r1, NIST P-256, P-256, prime256v1</li>
<li>secp384r1, NIST P-384, P-384</li>
<li>secp521r1, NIST P-521, P-521</li>
</ul>
NOTE1: DSA signing algorithm is also supported since crypto 1.1.5.
<h4>EXAMPLES</h4>
Expand Down
511 changes: 256 additions & 255 deletions api/symbols/src/asn1x509-1.0.js.html

Large diffs are not rendered by default.

1,021 changes: 511 additions & 510 deletions api/symbols/src/crypto-1.1.js.html

Large diffs are not rendered by default.

1,605 changes: 813 additions & 792 deletions api/symbols/src/ecdsa-modified-1.0.js.html

Large diffs are not rendered by default.

287 changes: 144 additions & 143 deletions api/symbols/src/ecparam-1.0.js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/symbols/src/keyutil-1.0.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@
<span class='line'>1238</span> * NOTE1: As for RSA algoirthm, public exponent has fixed
<span class='line'>1239</span> * value '0x10001'.
<span class='line'>1240</span> * NOTE2: As for EC algorithm, supported names of curve are
<span class='line'>1241</span> * secp256r1, secp256k1 and secp384r1.
<span class='line'>1241</span> * secp256r1, secp256k1, secp384r1 and secp521r1.
<span class='line'>1242</span> * NOTE3: DSA is not supported yet.
<span class='line'>1243</span> * @example
<span class='line'>1244</span> * var rsaKeypair = KEYUTIL.generateKeypair("RSA", 1024);
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kjur-jsrsasign",
"version": "10.4.1",
"version": "10.5.0",
"main": "jsrsasign-all-min.js",
"description": "The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES, JWS and JWT in pure JavaScript.",
"license": "MIT",
Expand Down
10 changes: 5 additions & 5 deletions jsrsasign-all-min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions jsrsasign-jwths-min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions jsrsasign-rsa-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion min/asn1x509-1.0.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 4e2e229

Please sign in to comment.