Skip to content

Commit

Permalink
7.1.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Mar 20, 2017
1 parent 9a76449 commit eb1cf7b
Show file tree
Hide file tree
Showing 11 changed files with 839 additions and 817 deletions.
12 changes: 11 additions & 1 deletion ChangeLog.txt
@@ -1,7 +1,17 @@

ChangeLog for jsrsasign

* Changes from 7.0.0 to 7.1.1 (2017-Mar-10)
* Changes from 7.1.1 to 7.1.2 (2017-Mar-20)
- CRITICAL BUG FIX: KJUR.asn1.x509.AlgorithmIdentifier
default was wrong in algorithm parameter field.
For example "SHA1" AlgorithmIdentifier object
will be missing algorithm parameter field by
bug. This issue raised just only in 7.1.1 and
the issue was fixed.
- asn1x509 1.0.21 to 1.0.22
- AlgorithmIdentifier bug fix

* Changes from 7.1.0 to 7.1.1 (2017-Mar-10)
- CRITICAL BUG FIX: KJUR.asn1.x509.Certificate.sign() and
KJUR.asn1.x509.X509Util.newCertPEM() have always
signed signatures with SHA1withRSA algorithm regardless
Expand Down
2 changes: 1 addition & 1 deletion api/files.html
Expand Up @@ -576,7 +576,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.21 (2017-Mar-03)</dd>
<dd>1.0.22 (2017-Mar-20)</dd>



Expand Down
5 changes: 3 additions & 2 deletions api/symbols/KJUR.asn1.x509.AlgorithmIdentifier.html
Expand Up @@ -528,8 +528,9 @@ <h1 class="classTitle">
(OPTION)</li>
<li>paramempty: set algorithm parameter to NULL by force.
If paramempty is false, algorithm parameter will be set automatically.
If algorithm name is "rsaEncryption" or "*withRSA" such as "SHA1withRSA",
algorithm parameter will be set to NULL by default.
If paramempty is false and algorithm name is "*withDSA" or "withECDSA" parameter field of
AlgorithmIdentifier will be ommitted otherwise
it will be NULL by default.
(OPTION, DEFAULT = false)</li>
</ul>

Expand Down
1,592 changes: 798 additions & 794 deletions api/symbols/src/asn1x509-1.0.js.html

Large diffs are not rendered by default.

22 changes: 13 additions & 9 deletions asn1x509-1.0.js
@@ -1,4 +1,4 @@
/*! asn1x509-1.0.21.js (c) 2013-2017 Kenji Urushima | kjur.github.com/jsrsasign/license
/*! asn1x509-1.0.22.js (c) 2013-2017 Kenji Urushima | kjur.github.com/jsrsasign/license
*/
/*
* asn1x509.js - ASN.1 DER encoder classes for X.509 certificate
Expand All @@ -16,7 +16,7 @@
* @fileOverview
* @name asn1x509-1.0.js
* @author Kenji Urushima kenji.urushima@gmail.com
* @version 1.0.21 (2017-Mar-03)
* @version 1.0.22 (2017-Mar-20)
* @since jsrsasign 2.1
* @license <a href="http://kjur.github.io/jsrsasign/license/">MIT License</a>
*/
Expand Down Expand Up @@ -1995,8 +1995,9 @@ YAHOO.lang.extend(KJUR.asn1.x509.Time, KJUR.asn1.ASN1Object);
* (OPTION)</li>
* <li>paramempty: set algorithm parameter to NULL by force.
* If paramempty is false, algorithm parameter will be set automatically.
* If algorithm name is "rsaEncryption" or "*withRSA" such as "SHA1withRSA",
* algorithm parameter will be set to NULL by default.
* If paramempty is false and algorithm name is "*withDSA" or "withECDSA" parameter field of
* AlgorithmIdentifier will be ommitted otherwise
* it will be NULL by default.
* (OPTION, DEFAULT = false)</li>
* </ul>
* @example
Expand Down Expand Up @@ -2042,13 +2043,16 @@ KJUR.asn1.x509.AlgorithmIdentifier = function(params) {
}
}

// set algorithm parameters to NULL for "*withRSA"
// set algorithm parameters will be ommitted for
// "*withDSA" or "*withECDSA" otherwise will be NULL.
if (this.asn1Params === null &&
this.paramEmpty === false &&
this.nameAlg !== null &
(this.nameAlg.substr(-7, 7).toLowerCase() === "withrsa" ||
this.nameAlg.toLowerCase() === "rsaencryption")) {
this.asn1Params = new KJUR.asn1.DERNull();
this.nameAlg !== null) {
var lcNameAlg = this.nameAlg.toLowerCase();
if (lcNameAlg.substr(-7, 7) !== "withdsa" &&
lcNameAlg.substr(-9, 9) !== "withecdsa") {
this.asn1Params = new KJUR.asn1.DERNull();
}
}
};
YAHOO.lang.extend(KJUR.asn1.x509.AlgorithmIdentifier, KJUR.asn1.ASN1Object);
Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "kjur-jsrsasign",
"version": "7.1.1",
"version": "7.1.2",
"main": "jsrsasign-latest-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
6 changes: 3 additions & 3 deletions jsrsasign-latest-all-min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions min/asn1x509-1.0.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions npm/lib/jsrsasign.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion npm/package.json
@@ -1,6 +1,6 @@
{
"name": "jsrsasign",
"version": "7.1.1",
"version": "7.1.2",
"description": "opensource free pure JavaScript cryptographic library supports RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp and CAdES and JSON Web Signature(JWS)/Token(JWT)/Key(JWK).",
"main": "lib/jsrsasign.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions test/qunit-do-asn1x509.html
Expand Up @@ -232,6 +232,9 @@

equal(new KJUR.asn1.x509.AlgorithmIdentifier({'name':'rsaEncryption'}).getEncodedHex(),
"300d06092a864886f70d0101010500", "constructor name rsaEncryption");

equal(new KJUR.asn1.x509.AlgorithmIdentifier({'name':'sha1'}).getEncodedHex(),
"300906052b0e03021a0500", "constructor name sha1");
});

test("AlgorithmIdentifier SHA1withECDSA", function() {
Expand Down

0 comments on commit eb1cf7b

Please sign in to comment.