Skip to content

Commit

Permalink
4.2.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed May 14, 2014
1 parent 3884b3f commit 06c41ba
Show file tree
Hide file tree
Showing 7 changed files with 715 additions and 444 deletions.
12 changes: 9 additions & 3 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@

ChangeLog for jsrsasign

* Changes between 4.2.2 to 4.2.3 (2014-May-14) minor update
- keyutil 1.0.6
- isPublic and isPrivate flag fix for generateKey method.
- tool_ca.html
- fix keyutil.js reference

* Changes between 4.2.1 to 4.2.2 (2014-Apr-19)
- asn1x509 1.0.7 to 1.0.8
- add setSignatureHex method for Certificate class
Expand All @@ -9,9 +15,9 @@ ChangeLog for jsrsasign
- add AuthorityKeyIdentifier X.509v3 extension class
- keyutil 1.0.4 to 1.0.5
- PKCS#10 CSR support. Following methods are added:
- PKCS5PKEY.getKeyFromCSRPEM
- PKCS5PKEY.getKeyFromCSRHex
- PKCS5PKEY.parseCSRHex
- KEYUTIL.getKeyFromCSRPEM
- KEYUTIL.getKeyFromCSRHex
- KEYUTIL.parseCSRHex
- Tool:
- tool_forfact.html:
CSR to fake certificate converter for factorable.net
Expand Down
2 changes: 1 addition & 1 deletion api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,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.5 (2014-Apr-18)</dd>
<dd>keyutil 1.0.6 (2014-May-14)</dd>



Expand Down
876 changes: 442 additions & 434 deletions api/symbols/src/keyutil-1.0.js.html

Large diffs are not rendered by default.

249 changes: 249 additions & 0 deletions jsrsasign-4.2.3-all-min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions keyutil-1.0.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! keyutil-1.0.5.js (c) 2013-2014 Kenji Urushima | kjur.github.com/jsrsasign/license
/*! keyutil-1.0.6.js (c) 2013-2014 Kenji Urushima | kjur.github.com/jsrsasign/license
*/
/*
* keyutil.js - key utility for PKCS#1/5/8 PEM, RSA/DSA/ECDSA key object
Expand All @@ -15,7 +15,7 @@
* @fileOverview
* @name keyutil-1.0.js
* @author Kenji Urushima [email protected]
* @version keyutil 1.0.5 (2014-Apr-18)
* @version keyutil 1.0.6 (2014-May-14)
* @since jsrsasign 4.1.4
* @license <a href="http://kjur.github.io/jsrsasign/license/">MIT License</a>
*/
Expand Down Expand Up @@ -1439,11 +1439,15 @@ KEYUTIL.generateKeypair = function(alg, keylenOrCurve) {
var keylen = keylenOrCurve;
var prvKey = new RSAKey();
prvKey.generate(keylen, '10001');
prvKey.isPrivate = true;
prvKey.isPublic = true;

var pubKey = new RSAKey();
var hN = prvKey.n.toString(16);
var hE = prvKey.e.toString(16);
pubKey.setPublic(hN, hE);
pubKey.isPrivate = false;
pubKey.isPublic = true;

var result = {};
result.prvKeyObj = prvKey;
Expand All @@ -1456,9 +1460,13 @@ KEYUTIL.generateKeypair = function(alg, keylenOrCurve) {

var prvKey = new KJUR.crypto.ECDSA({curve: curve});
prvKey.setPrivateKeyHex(keypairHex.ecprvhex);
prvKey.isPrivate = true;
prvKey.isPublic = false;

var pubKey = new KJUR.crypto.ECDSA({curve: curve});
pubKey.setPublicKeyHex(keypairHex.ecpubhex);
pubKey.isPrivate = false;
pubKey.isPublic = true;

var result = {};
result.prvKeyObj = prvKey;
Expand Down
4 changes: 2 additions & 2 deletions keyutil-1.0.min.js

Large diffs are not rendered by default.

0 comments on commit 06c41ba

Please sign in to comment.