Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Aug 4, 2020
1 parent 66ea58b commit 29a7a23
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

ChangeLog for jsrsasign

* Changes from 8.0.21 to next version
- src/asn1hex.js
- dump method update for BitString encapsulated

Donation program started, more RSA-PSS support and add ASN1HEX.get{Idx,TLV,V}byListEx
* Changes from 8.0.20 to 8.0.21 (2020-Aug-01)
- *donation program* have been started.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Your bugfix and pull request contribution are always welcomed :)

NEWS
----
- 2020-Aug-02: twitter account [@kjur](https://twitter.com/jsrsasign) started. please follow.
- 2020-Aug-02: twitter account [@jsrsasign](https://twitter.com/jsrsasign) started. please follow.

HIGHLIGHTS
----------
Expand Down
14 changes: 10 additions & 4 deletions src/asn1hex-1.1.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* asn1hex-1.2.1.js (c) 2012-2020 Kenji Urushima | kjur.github.com/jsrsasign/license
/* asn1hex-1.2.2.js (c) 2012-2020 Kenji Urushima | kjur.github.com/jsrsasign/license
*/
/*
* asn1hex.js - Hexadecimal represented ASN.1 string library
Expand All @@ -16,7 +16,7 @@
* @fileOverview
* @name asn1hex-1.1.js
* @author Kenji Urushima kenji.urushima@gmail.com
* @version jsrsasign 8.0.19 asn1hex 1.2.1 (2020-Jun-22)
* @version jsrsasign 8.0.19 asn1hex 1.2.2 (2020-Aug-06)
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
*/

Expand Down Expand Up @@ -725,11 +725,17 @@ ASN1HEX.dump = function(hexOrObj, flags, idx, indent) {
}
if (hex.substr(idx, 2) == "02") {
var v = _getV(hex, idx);
return indent + "INTEGER " + _skipLongHex(v, skipLongHex) + "\n";
return indent + "INTEGER " + _skipLongHex(v, skipLongHex) + "\n";
}
if (hex.substr(idx, 2) == "03") {
var v = _getV(hex, idx);
return indent + "BITSTRING " + _skipLongHex(v, skipLongHex) + "\n";
if (_ASN1HEX.isASN1HEX(v.substr(2))) {
var s = indent + "BITSTRING, encapsulates\n";
s = s + _dump(v.substr(2), flags, 0, indent + " ");
return s;
} else {
return indent + "BITSTRING " + _skipLongHex(v, skipLongHex) + "\n";
}
}
if (hex.substr(idx, 2) == "04") {
var v = _getV(hex, idx);
Expand Down

0 comments on commit 29a7a23

Please sign in to comment.