Skip to content

Commit

Permalink
10.1.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Feb 8, 2021
1 parent 4b2df98 commit 8cd340d
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ChangeLog for jsrsasign

KEYUTIL supports PKCS8 private key with extension
* Changes from 10.1.5 to 10.1.6 release (2021-02-08)
* Changes from 10.1.5 to 10.1.7 release (2021-02-08)
- src/keyutil.js
- KEYUTIL.parsePlainPrivatePKCS8Hex now supports
private key extsion
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kjur-jsrsasign",
"version": "10.1.6",
"version": "10.1.7",
"main": "jsrsasign-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
2 changes: 1 addition & 1 deletion jsrsasign-all-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jsrsasign-jwths-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jsrsasign-rsa-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion npm/lib/jsrsasign-all-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion npm/lib/jsrsasign-jwths-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion npm/lib/jsrsasign-rsa-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion npm/lib/jsrsasign.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsrsasign",
"version": "10.1.6",
"version": "10.1.7",
"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
19 changes: 19 additions & 0 deletions npm/test/t_ku.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var assert = require('assert');
var rs = require('../lib/jsrsasign.js');

var hex = "3081a2020100301306072a8648ce3d020106082a8648ce3d0301070479307702010104204e1578f2b98424cc0e86e28ce2350f02e810454c7cc683d4ed442926537a9515a00a06082a8648ce3d030107a1440342000467df2be8010970b07d40d95bd921e6dd8f2c7ec5cd308ad73cd0917b87d5edf0d28894b124c4734c5f714280c3dc8d63d1003eb292bbdb0348672ff88a3f85eaa00d300b0603551d0f310403020080";

var p = {
"algoid": "2a8648ce3d0201",
"algparam": "2a8648ce3d030107",
"keyidx": 58
};

describe("ggg", function() {
describe("prv", function() {
var info = rs.KEYUTIL.parsePlainPrivatePKCS8Hex(hex);
it('load and sign properly', function() {
assert.deepEqual(info, p);
});
});
});

0 comments on commit 8cd340d

Please sign in to comment.