Skip to content

Commit

Permalink
10.5.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Feb 8, 2022
1 parent 1536f25 commit 564c2d9
Show file tree
Hide file tree
Showing 18 changed files with 866 additions and 483 deletions.
13 changes: 9 additions & 4 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@

ChangeLog for jsrsasign

* Changes from 10.5.1 to next release
small update for OID and JWK
* Changes from 10.5.1 to 10.5.2 (2022-Feb-08)
- src/asn1x509.js
- add OID.{registerOIDs,checkOIDs} method
- src/keyutil.js
- getJWK, getJWKFromKey APIC doc update
- getJWK, getJWKFromKey API doc update
- test/qunit-do-asn1x509.html updated
- test case added

add KEYUTIL.getJWK, fix EC P-521 concat signature value and add support for P-521 JWS JWK
* Changes from 10.5.0 to 10.5.1 (2021-Dec-01)
- fix ECC P-521 curve issues (#528)
- src/ecdsa-modified.js
- asn1SigToConcatSig fix P521 issue
- concatSigToASN1Sig fix P521 issue
- asn1SigToConcatSig fix P-521 issue
- concatSigToASN1Sig fix P-521 issue
- src/jws.js
- add ES512 support
- src/keyutil.js
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ HIGHLIGHTS
- no dependency to other library
- no dependency to [W3C Web Cryptography API](https://www.w3.org/TR/WebCryptoAPI/) nor [OpenSSL](https://www.openssl.org/)
- no dependency on newer ECMAScirpt function. So old browsers also supported.
- very popular crypto library with [0.6M+ npm downloads/month](https://npm-stat.com/charts.html?package=jsrsasign&from=2016-05-01&to=2021-11-29)
- very popular crypto library with [0.6M+ npm downloads/month](https://npm-stat.com/charts.html?package=jsrsasign&from=2016-05-01&to=2022-02-04)

INSTALL
-------
Expand Down
2 changes: 1 addition & 1 deletion 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.5.0 asn1x509 2.1.10 (2021-Nov-21)</dd>
<dd>jsrsasign 10.5.2 asn1x509 2.1.11 (2022-Feb-08)</dd>



Expand Down
185 changes: 179 additions & 6 deletions api/symbols/KJUR.asn1.x509.OID.html
Original file line number Diff line number Diff line change
Expand Up @@ -633,13 +633,25 @@ <h1 class="classTitle">
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">KJUR.asn1.x509.OID.<b><a href="../symbols/KJUR.asn1.x509.OID.html#.checkOIDs">checkOIDs</a></b>(oids)
</div>
<div class="description">check validity for OID list<br/>
This static method validates an associative array
as oid list.</div>
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">KJUR.asn1.x509.OID.<b><a href="../symbols/KJUR.asn1.x509.OID.html#.name2obj">name2obj</a></b>(name)
</div>
<div class="description">get DERObjectIdentifier by registered OID name
</div>
This static method returns DERObjectIdentifier object
for the specified OID.</div>
</td>
</tr>

Expand Down Expand Up @@ -673,6 +685,17 @@ <h1 class="classTitle">
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">KJUR.asn1.x509.OID.<b><a href="../symbols/KJUR.asn1.x509.OID.html#.registerOIDs">registerOIDs</a></b>(oids)
</div>
<div class="description">register OID list<br/>
This static method to register an oids to existing list
additionally.</div>
</td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -821,7 +844,7 @@ <h1 class="classTitle">
<a name=".atype2obj"> </a>
<div class="fixedFont">&lt;static&gt;

<span class="light">{@link KJUR.asn1.DERObjectIdentifier}</span>

<span class="light">KJUR.asn1.x509.OID.</span><b>atype2obj</b>(atype)

</div>
Expand Down Expand Up @@ -860,7 +883,7 @@ <h1 class="classTitle">
<dl class="detailList">
<dt class="heading">Returns:</dt>

<dd><span class="light fixedFont">{@link KJUR.asn1.DERObjectIdentifier}</span> instance</dd>
<dd>KJUR.asn1.DERObjectIdentifier instance</dd>

</dl>

Expand All @@ -869,23 +892,95 @@ <h1 class="classTitle">

<hr />

<a name=".name2obj"> </a>
<a name=".checkOIDs"> </a>
<div class="fixedFont">&lt;static&gt;

<span class="light">{boolean}</span>
<span class="light">KJUR.asn1.x509.OID.</span><b>checkOIDs</b>(oids)

</div>
<div class="description">
check validity for OID list<br/>
This static method validates an associative array
as oid list.


</div>



<pre class="code">KJUR.asn1.x509.OID.checkOIDs(*non-assoc-array*) &rarr; false
KJUR.asn1.x509.OID.checkOIDs({}) &rarr; false
KJUR.asn1.x509.OID.checkOIDs({"test1": "apple"}) &rarr; false
KJUR.asn1.x509.OID.checkOIDs({
"test1": "1.2.3",
"test2": "0.2.3.4.23",
}) &rarr; true // valid oids
KJUR.asn1.x509.OID.checkOIDs({
"test1": "4.5.7.8"
}) &rarr; false // invalid oid</pre>




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

<dt>
<span class="light fixedFont">{object}</span> <b>oids</b>

</dt>
<dd>associative array of names and oids</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 10.5.2 asn1x509 2.1.11</dd>
</dl>
</dl>



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

<dd><span class="light fixedFont">{boolean}</span> return true when valid OID list otherwise false</dd>

</dl>



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

<dd>KJUR.asn1.x509.OID.registOIDs</dd>

</dl>


<hr />

<a name=".name2obj"> </a>
<div class="fixedFont">&lt;static&gt;

<span class="light">{Object}</span>
<span class="light">KJUR.asn1.x509.OID.</span><b>name2obj</b>(name)

</div>
<div class="description">
get DERObjectIdentifier by registered OID name

This static method returns DERObjectIdentifier object
for the specified OID.


</div>



<pre class="code">var asn1ObjOID = OID.name2obj('SHA1withRSA');</pre>
<pre class="code">var asn1ObjOID = KJUR.asn1.x509.OID.name2obj('SHA1withRSA');</pre>



Expand All @@ -905,7 +1000,21 @@ <h1 class="classTitle">



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

<dd><span class="light fixedFont">{Object}</span> DERObjectIdentifier instance</dd>

</dl>



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

<dd><a href="../symbols/KJUR.asn1.DERObjectIdentifier.html">KJUR.asn1.DERObjectIdentifier</a></dd>

</dl>


<hr />
Expand Down Expand Up @@ -1078,6 +1187,70 @@ <h1 class="classTitle">



<hr />

<a name=".registerOIDs"> </a>
<div class="fixedFont">&lt;static&gt;


<span class="light">KJUR.asn1.x509.OID.</span><b>registerOIDs</b>(oids)

</div>
<div class="description">
register OID list<br/>
This static method to register an oids to existing list
additionally.


</div>



<pre class="code">KJUR.asn1.x509.OID.checkOIDs({
"test1": "4.5.7.8"
}) // do nothing for invalid list

KJUR.asn1.x509.OID.registerOIDs({
"test1": "1.2.3",
"test2": "0.2.3.4.23",
}) // successfully registered

KJUR.asn1.x509.OID.name2oid("test1") &rarr; "1.2.3"</pre>




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

<dt>
<span class="light fixedFont">{object}</span> <b>oids</b>

</dt>
<dd>associative array of names and oids</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 10.5.2 asn1x509 2.1.11</dd>
</dl>
</dl>





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

<dd><a href="../symbols/KJUR.asn1.x509.OID.html#.checkOIDs">KJUR.asn1.x509.OID.checkOIDs</a></dd>

</dl>





Expand Down
Loading

0 comments on commit 564c2d9

Please sign in to comment.