Skip to content

Commit 108c7df

Browse files
committed
comment update
1 parent 12fdf1b commit 108c7df

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
ChangeLog for jsrsasign
33

44
* Changes from 8.0.16 to next version
5+
- src/asn1x509.js
6+
- allow alternative algorithms to sign CRLs (#440)
7+
- src/asn1cms.js
8+
- improve CMSUtil.newSignedData helper with detached signatures (#441)
59
- sample_node
610
- pemtobin was fixed for pemtohex function
711

src/asn1cms-1.0.js

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
/* asn1cms-1.0.5.js (c) 2013-2017 Kenji Urushima | kjur.github.io/jsrsasign/license
1+
/* asn1cms-1.0.6.js (c) 2013-2020 Kenji Urushima | kjur.github.io/jsrsasign/license
22
*/
33
/*
44
* asn1cms.js - ASN.1 DER encoder and verifier classes for Cryptographic Message Syntax(CMS)
55
*
6-
* Copyright (c) 2013-2017 Kenji Urushima ([email protected])
6+
* Copyright (c) 2013-2020 Kenji Urushima ([email protected])
77
*
88
* This software is licensed under the terms of the MIT License.
99
* https://kjur.github.io/jsrsasign/license
@@ -16,7 +16,7 @@
1616
* @fileOverview
1717
* @name asn1cms-1.0.js
1818
* @author Kenji Urushima [email protected]
19-
* @version 1.0.5 (2017-Sep-15)
19+
* @version jsrsasign 8.0.17 asn1cms 1.0.6 (2020-Jun-19)
2020
* @since jsrsasign 4.2.4
2121
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
2222
*/
@@ -983,6 +983,26 @@ KJUR.asn1.cms.CMSUtil = new function() {
983983
* @description
984984
* This method provides more easy way to genereate
985985
* CMS SignedData ASN.1 structure by JSON data.
986+
* <br>
987+
* Here is major parameters:
988+
* <ul>
989+
* <li>content - to specify data to be signed in eContent field.</li>
990+
* <li>certs - a list of certificate PEM strings to specify
991+
* certificate field</li>
992+
* <li>detached - 'true' or 'false' to specify detached signature or not.
993+
* The default is 'false'</li>
994+
* <li>signerInfos - array of signerInfo parameters.
995+
* SignerInfo parameters listed here:
996+
* <ul>
997+
* <li>hashAlg - string of messageDigest hash algorithm name</li>
998+
* <li>sAttr - list of signedAttribute parameters</li>
999+
* <li>signerCert - string of signer certificate PEM</li>
1000+
* <li>sigAlg - string of signature algorithm name</li>
1001+
* <li>signerPrvKey - string of PEM signer private key</li>
1002+
* </ul>
1003+
* </li>
1004+
* </ul>
1005+
*
9861006
* @example
9871007
* var sd = KJUR.asn1.cms.CMSUtil.newSignedData({
9881008
* content: {str: "jsrsasign"},

src/asn1x509-1.0.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* asn1x509-1.1.8.js (c) 2013-2020 Kenji Urushima | kjur.github.com/jsrsasign/license
1+
/* asn1x509-1.1.9.js (c) 2013-2020 Kenji Urushima | kjur.github.com/jsrsasign/license
22
*/
33
/*
44
* asn1x509.js - ASN.1 DER encoder classes for X.509 certificate
@@ -16,7 +16,7 @@
1616
* @fileOverview
1717
* @name asn1x509-1.0.js
1818
* @author Kenji Urushima [email protected]
19-
* @version jsrsasign 8.0.16 asn1x509 1.1.8 (2020-May-25)
19+
* @version jsrsasign 8.0.17 asn1x509 1.1.9 (2020-Jun-19)
2020
* @since jsrsasign 2.1
2121
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
2222
*/
@@ -1337,8 +1337,7 @@ YAHOO.lang.extend(KJUR.asn1.x509.IssuerAltName, KJUR.asn1.x509.Extension);
13371337
* NOTE: 'params' can be omitted.
13381338
* <h4>EXAMPLE</h4>
13391339
* @example
1340-
* var prvKey = new RSAKey(); // CA's private key
1341-
* prvKey.readPrivateKeyFromASN1HexString("3080...");
1340+
* var prvKey = KEYUTIL.getKEY("-----BEGIN PRIVATE..."); // CA's private key
13421341
* var crl = new KJUR.asn1x509.CRL({'tbsobj': tbs, 'prvkeyobj': prvKey});
13431342
* crl.sign(); // issue CRL by CA's private key
13441343
* var hCRL = crl.getEncodedHex();

0 commit comments

Comments
 (0)