|
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 |
2 | 2 | */ |
3 | 3 | /* |
4 | 4 | * asn1cms.js - ASN.1 DER encoder and verifier classes for Cryptographic Message Syntax(CMS) |
5 | 5 | * |
6 | | - * Copyright (c) 2013-2017 Kenji Urushima ([email protected]) |
| 6 | + * Copyright (c) 2013-2020 Kenji Urushima ([email protected]) |
7 | 7 | * |
8 | 8 | * This software is licensed under the terms of the MIT License. |
9 | 9 | * https://kjur.github.io/jsrsasign/license |
|
16 | 16 | * @fileOverview |
17 | 17 | * @name asn1cms-1.0.js |
18 | 18 | * @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) |
20 | 20 | * @since jsrsasign 4.2.4 |
21 | 21 | * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a> |
22 | 22 | */ |
@@ -983,6 +983,26 @@ KJUR.asn1.cms.CMSUtil = new function() { |
983 | 983 | * @description |
984 | 984 | * This method provides more easy way to genereate |
985 | 985 | * 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 | + * |
986 | 1006 | * @example |
987 | 1007 | * var sd = KJUR.asn1.cms.CMSUtil.newSignedData({ |
988 | 1008 | * content: {str: "jsrsasign"}, |
|
0 commit comments