Skip to content

Commit

Permalink
6.1.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Oct 8, 2016
1 parent 9a9c619 commit cf31c93
Show file tree
Hide file tree
Showing 28 changed files with 5,958 additions and 5,781 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
ChangeLog for jsrsasign

* Changes between 6.1.1 to 6.1.2 (2016-Oct-08)
- OCSP Response support
- asn1hex 1.1.6 to 1.1.7
- refactoring for static methods
- encapsulated BitString support
- more API documents
- asn1ocsp 1.0.0 to 1.0.1
- OCSPUtil.getOCSPResponseInfo added
- merge RegExp fix pull request from @huokko.
Thank you @huokko.
(asn1x509, crypto, jws, keyutil, pkcs5pkey)

* Changes between 6.1.0 to 6.1.1 (2016-Sep-25)
- asn1 1.0.10 to 1.0.11
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
jsrsasign
=========

[![license](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/kjur/jsrsasign/blob/master/LICENSE.txt)
[![bower](https://img.shields.io/bower/v/jsrsasign.svg?maxAge=2592000)](https://libraries.io/bower/jsrsasign)
[![npm version](https://badge.fury.io/js/jsrsasign.svg)](https://badge.fury.io/js/jsrsasign)

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 JSON Web Signature/Token/Key in pure JavaScript.

Public page is http://kjur.github.com/jsrsasign .
Expand Down
14 changes: 7 additions & 7 deletions api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ <h2><a href="symbols/src/asn1hex-1.1.js.html">asn1hex-1.1.js</a></h2>


<dt class="heading">Version:</dt>
<dd>asn1hex 1.1.6 (2015-Jun-11)</dd>
<dd>asn1hex 1.1.7 (2016-Oct-02)</dd>



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


<dt class="heading">Version:</dt>
<dd>1.0.0 (2016-Sep-22)</dd>
<dd>1.0.1 (2016-Oct-02)</dd>



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


<dt class="heading">Version:</dt>
<dd>1.0.14 (2016-May-10)</dd>
<dd>1.0.15 (2016-Oct-08)</dd>



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


<dt class="heading">Version:</dt>
<dd>1.1.8 (2016-Feb-28)</dd>
<dd>1.1.9 (2016-Oct-08)</dd>



Expand Down Expand Up @@ -682,7 +682,7 @@ <h2><a href="symbols/src/jws-3.3.js.html">jws-3.3.js</a></h2>


<dt class="heading">Version:</dt>
<dd>3.3.4 (2016-May-17)</dd>
<dd>3.3.5 (2016-Oct-08)</dd>



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


<dt class="heading">Version:</dt>
<dd>keyutil 1.0.13 (2016-Aug-11)</dd>
<dd>keyutil 1.0.14 (2016-Oct-08)</dd>



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


<dt class="heading">Version:</dt>
<dd>pkcs5pkey 1.0.6 (2014-Apr-16)</dd>
<dd>pkcs5pkey 1.0.7 (2016-Oct-08)</dd>



Expand Down
136 changes: 112 additions & 24 deletions api/symbols/ASN1HEX.html
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ <h1 class="classTitle">
<td class="nameDescription">
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getByteLengthOfL_AtObj">getByteLengthOfL_AtObj</a></b>(s, pos)
</div>
<div class="description">get byte length for ASN.1 L(length) bytes</div>
<div class="description">get byte length for ASN.1 L(length) bytes<br/></div>
</td>
</tr>

Expand All @@ -531,7 +531,7 @@ <h1 class="classTitle">
<td class="nameDescription">
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getDecendantIndexByNthList">getDecendantIndexByNthList</a></b>(h, currentIndex, nthList)
</div>
<div class="description">get string index of nth child object of ASN.1 object refered by h, idx</div>
<div class="description">get string index of nth child object of ASN.1 object refered by h, idx<br/></div>
</td>
</tr>

Expand All @@ -540,7 +540,7 @@ <h1 class="classTitle">
<td class="nameDescription">
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getHexOfL_AtObj">getHexOfL_AtObj</a></b>(s, pos)
</div>
<div class="description">get hexadecimal string for ASN.1 L(length) bytes</div>
<div class="description">get hexadecimal string for ASN.1 L(length) bytes<br/></div>
</td>
</tr>

Expand All @@ -549,7 +549,7 @@ <h1 class="classTitle">
<td class="nameDescription">
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getHexOfTLV_AtObj">getHexOfTLV_AtObj</a></b>(s, pos)
</div>
<div class="description">get hexadecimal string of ASN.1 TLV at</div>
<div class="description">get hexadecimal string of ASN.1 TLV at<br/></div>
</td>
</tr>

Expand All @@ -567,7 +567,7 @@ <h1 class="classTitle">
<td class="nameDescription">
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getIntOfL_AtObj">getIntOfL_AtObj</a></b>(s, pos)
</div>
<div class="description">get integer value of ASN.1 length for ASN.1 data</div>
<div class="description">get integer value of ASN.1 length for ASN.1 data<br/></div>
</td>
</tr>

Expand All @@ -576,16 +576,18 @@ <h1 class="classTitle">
<td class="nameDescription">
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getNthChildIndex_AtObj">getNthChildIndex_AtObj</a></b>(h, idx, nth)
</div>
<div class="description">get string index of nth child object of ASN.1 object refered by h, idx</div>
<div class="description">get string index of nth child object of ASN.1 object refered by h, idx<br/></div>
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getPosArrayOfChildren_AtObj">getPosArrayOfChildren_AtObj</a></b>(s, start)
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getPosArrayOfChildren_AtObj">getPosArrayOfChildren_AtObj</a></b>(h, pos)
</div>
<div class="description">get array of indexes of child ASN.1 objects</div>
<div class="description">get array of string indexes of child ASN.1 objects<br/>
This method returns array of integers for a concatination of ASN.1 objects
in a ASN.1 value.</div>
</td>
</tr>

Expand All @@ -594,7 +596,7 @@ <h1 class="classTitle">
<td class="nameDescription">
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getPosOfNextSibling_AtObj">getPosOfNextSibling_AtObj</a></b>(s, pos)
</div>
<div class="description">get next sibling starting index for ASN.1 object string</div>
<div class="description">get next sibling starting index for ASN.1 object string<br/></div>
</td>
</tr>

Expand All @@ -607,12 +609,23 @@ <h1 class="classTitle">
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getVbyList">getVbyList</a></b>(h, currentIndex, nthList, checkingTag)
</div>
<div class="description">get ASN.1 value by nthList<br/>
This static method is to get a ASN.1 value which specified "nthList" position
with checking expected tag "checkingTag".</div>
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.hextooidstr">hextooidstr</a></b>(hex)
</div>
<div class="description">get OID string from hexadecimal encoded value</div>
<div class="description">get OID string from hexadecimal encoded value<br/></div>
</td>
</tr>

Expand Down Expand Up @@ -671,6 +684,7 @@ <h1 class="classTitle">
</li>
<li><b>ACCESS NESTED ASN.1 STRUCTURE</b>
<ul>
<li><a href="../symbols/ASN1HEX.html#.getVbyList">ASN1HEX.getVbyList</a> - get ASN.1 V at specified nth list index with checking expected tag</li>
<li><a href="../symbols/ASN1HEX.html#.getDecendantHexTLVByNthList">ASN1HEX.getDecendantHexTLVByNthList</a> - get ASN.1 TLV at specified list index</li>
<li><a href="../symbols/ASN1HEX.html#.getDecendantHexVByNthList">ASN1HEX.getDecendantHexVByNthList</a> - get ASN.1 V at specified list index</li>
<li><a href="../symbols/ASN1HEX.html#.getDecendantIndexByNthList">ASN1HEX.getDecendantIndexByNthList</a> - get index at specified list index</li>
Expand Down Expand Up @@ -844,7 +858,7 @@ <h1 class="classTitle">

</div>
<div class="description">
get byte length for ASN.1 L(length) bytes
get byte length for ASN.1 L(length) bytes<br/>


</div>
Expand Down Expand Up @@ -1015,7 +1029,7 @@ <h1 class="classTitle">

</div>
<div class="description">
get string index of nth child object of ASN.1 object refered by h, idx
get string index of nth child object of ASN.1 object refered by h, idx<br/>


</div>
Expand Down Expand Up @@ -1090,7 +1104,7 @@ <h1 class="classTitle">

</div>
<div class="description">
get hexadecimal string for ASN.1 L(length) bytes
get hexadecimal string for ASN.1 L(length) bytes<br/>


</div>
Expand Down Expand Up @@ -1139,7 +1153,7 @@ <h1 class="classTitle">

</div>
<div class="description">
get hexadecimal string of ASN.1 TLV at
get hexadecimal string of ASN.1 TLV at<br/>


</div>
Expand Down Expand Up @@ -1168,7 +1182,7 @@ <h1 class="classTitle">

<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>1.1</dd>
<dd>asn1hex 1.1</dd>
</dl>
</dl>

Expand Down Expand Up @@ -1243,7 +1257,7 @@ <h1 class="classTitle">

</div>
<div class="description">
get integer value of ASN.1 length for ASN.1 data
get integer value of ASN.1 length for ASN.1 data<br/>


</div>
Expand Down Expand Up @@ -1292,7 +1306,7 @@ <h1 class="classTitle">

</div>
<div class="description">
get string index of nth child object of ASN.1 object refered by h, idx
get string index of nth child object of ASN.1 object refered by h, idx<br/>


</div>
Expand Down Expand Up @@ -1349,32 +1363,44 @@ <h1 class="classTitle">
<div class="fixedFont">&lt;static&gt;

<span class="light">{Array of Number}</span>
<span class="light">ASN1HEX.</span><b>getPosArrayOfChildren_AtObj</b>(s, start)
<span class="light">ASN1HEX.</span><b>getPosArrayOfChildren_AtObj</b>(h, pos)

</div>
<div class="description">
get array of indexes of child ASN.1 objects
get array of string indexes of child ASN.1 objects<br/>
This method returns array of integers for a concatination of ASN.1 objects
in a ASN.1 value. As for BITSTRING, one byte of unusedbits is skipped.
As for other ASN.1 simple types such as INTEGER, OCTET STRING or PRINTABLE STRING,
it returns a array of a string index of its ASN.1 value.<br/>
NOTE: Since asn1hex 1.1.7 of jsrsasign 6.1.2, Encapsulated BitString is supported.


</div>



<pre class="code">ASN1HEX.getPosArrayOfChildren_AtObj("0203012345", 0) &rArr; [4] // INTEGER 012345
ASN1HEX.getPosArrayOfChildren_AtObj("1303616161", 0) &rArr; [4] // PrintableString aaa
ASN1HEX.getPosArrayOfChildren_AtObj("030300ffff", 0) &rArr; [6] // BITSTRING ffff (unusedbits=00a)
ASN1HEX.getPosArrayOfChildren_AtObj("3006020104020105", 0) &rArr; [4, 10] // SEQUENCE(INT4,INT5)</pre>




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

<dt>
<span class="light fixedFont">{String}</span> <b>s</b>
<span class="light fixedFont">{String}</span> <b>h</b>

</dt>
<dd>hexadecimal string of ASN.1 DER encoded data</dd>

<dt>
<span class="light fixedFont">{Number}</span> <b>start</b>
<span class="light fixedFont">{Number}</span> <b>pos</b>

</dt>
<dd>string index of ASN.1 object</dd>
<dd>start string index of ASN.1 object</dd>

</dl>

Expand Down Expand Up @@ -1402,7 +1428,7 @@ <h1 class="classTitle">

</div>
<div class="description">
get next sibling starting index for ASN.1 object string
get next sibling starting index for ASN.1 object string<br/>


</div>
Expand Down Expand Up @@ -1483,6 +1509,68 @@ <h1 class="classTitle">



<hr />

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


<span class="light">ASN1HEX.</span><b>getVbyList</b>(h, currentIndex, nthList, checkingTag)

</div>
<div class="description">
get ASN.1 value by nthList<br/>
This static method is to get a ASN.1 value which specified "nthList" position
with checking expected tag "checkingTag".


</div>




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

<dt>
<span class="light fixedFont">{String}</span> <b>h</b>

</dt>
<dd>hexadecimal string of ASN.1 structure</dd>

<dt>
<span class="light fixedFont">{Integer}</span> <b>currentIndex</b>

</dt>
<dd>string index to start searching in hexadecimal string "h"</dd>

<dt>
<span class="light fixedFont">{Array}</span> <b>nthList</b>

</dt>
<dd>array of nth list index</dd>

<dt>
<span class="light fixedFont">{String}</span> <b>checkingTag</b>

</dt>
<dd>(OPTIONAL) string of expected ASN.1 tag for nthList</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>asn1hex 1.1.4</dd>
</dl>
</dl>






<hr />

<a name=".hextooidstr"> </a>
Expand All @@ -1493,7 +1581,7 @@ <h1 class="classTitle">

</div>
<div class="description">
get OID string from hexadecimal encoded value
get OID string from hexadecimal encoded value<br/>


</div>
Expand Down
Loading

0 comments on commit cf31c93

Please sign in to comment.