@peculiar/asn1-cms
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -8,4 +8,13 @@ "use strict"; | ||
tslib_1.__exportStar(require("./encapsulated_content_info"), exports); | ||
tslib_1.__exportStar(require("./encrypted_content_info"), exports); | ||
tslib_1.__exportStar(require("./enveloped_data"), exports); | ||
tslib_1.__exportStar(require("./issuer_and_serial_number"), exports); | ||
tslib_1.__exportStar(require("./kek_recipient_info"), exports); | ||
tslib_1.__exportStar(require("./key_agree_recipient_info"), exports); | ||
tslib_1.__exportStar(require("./key_trans_recipient_info"), exports); | ||
tslib_1.__exportStar(require("./object_identifiers"), exports); | ||
tslib_1.__exportStar(require("./originator_info"), exports); | ||
tslib_1.__exportStar(require("./password_recipient_info"), exports); | ||
tslib_1.__exportStar(require("./recipient_info"), exports); | ||
tslib_1.__exportStar(require("./recipient_infos"), exports); | ||
tslib_1.__exportStar(require("./revocation_info_choice"), exports); | ||
@@ -12,0 +21,0 @@ tslib_1.__exportStar(require("./signed_data"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SignatureAlgorithmIdentifier = exports.DigestAlgorithmIdentifier = exports.CMSVersion = void 0; | ||
exports.KeyDerivationAlgorithmIdentifier = exports.MessageAuthenticationCodeAlgorithm = exports.ContentEncryptionAlgorithmIdentifier = exports.KeyEncryptionAlgorithmIdentifier = exports.SignatureAlgorithmIdentifier = exports.DigestAlgorithmIdentifier = exports.CMSVersion = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -28,1 +28,25 @@ const asn1_x509_1 = require("@peculiar/asn1-x509"); | ||
exports.SignatureAlgorithmIdentifier = SignatureAlgorithmIdentifier; | ||
let KeyEncryptionAlgorithmIdentifier = class KeyEncryptionAlgorithmIdentifier extends asn1_x509_1.AlgorithmIdentifier { | ||
}; | ||
KeyEncryptionAlgorithmIdentifier = tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Sequence }) | ||
], KeyEncryptionAlgorithmIdentifier); | ||
exports.KeyEncryptionAlgorithmIdentifier = KeyEncryptionAlgorithmIdentifier; | ||
let ContentEncryptionAlgorithmIdentifier = class ContentEncryptionAlgorithmIdentifier extends asn1_x509_1.AlgorithmIdentifier { | ||
}; | ||
ContentEncryptionAlgorithmIdentifier = tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Sequence }) | ||
], ContentEncryptionAlgorithmIdentifier); | ||
exports.ContentEncryptionAlgorithmIdentifier = ContentEncryptionAlgorithmIdentifier; | ||
let MessageAuthenticationCodeAlgorithm = class MessageAuthenticationCodeAlgorithm extends asn1_x509_1.AlgorithmIdentifier { | ||
}; | ||
MessageAuthenticationCodeAlgorithm = tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Sequence }) | ||
], MessageAuthenticationCodeAlgorithm); | ||
exports.MessageAuthenticationCodeAlgorithm = MessageAuthenticationCodeAlgorithm; | ||
let KeyDerivationAlgorithmIdentifier = class KeyDerivationAlgorithmIdentifier extends asn1_x509_1.AlgorithmIdentifier { | ||
}; | ||
KeyDerivationAlgorithmIdentifier = tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Sequence }) | ||
], KeyDerivationAlgorithmIdentifier); | ||
exports.KeyDerivationAlgorithmIdentifier = KeyDerivationAlgorithmIdentifier; |
@@ -5,4 +5,13 @@ export * from "./attribute"; | ||
export * from "./encapsulated_content_info"; | ||
export * from "./encrypted_content_info"; | ||
export * from "./enveloped_data"; | ||
export * from "./issuer_and_serial_number"; | ||
export * from "./kek_recipient_info"; | ||
export * from "./key_agree_recipient_info"; | ||
export * from "./key_trans_recipient_info"; | ||
export * from "./object_identifiers"; | ||
export * from "./originator_info"; | ||
export * from "./password_recipient_info"; | ||
export * from "./recipient_info"; | ||
export * from "./recipient_infos"; | ||
export * from "./revocation_info_choice"; | ||
@@ -9,0 +18,0 @@ export * from "./signed_data"; |
@@ -25,1 +25,25 @@ import { __decorate } from "tslib"; | ||
export { SignatureAlgorithmIdentifier }; | ||
let KeyEncryptionAlgorithmIdentifier = class KeyEncryptionAlgorithmIdentifier extends AlgorithmIdentifier { | ||
}; | ||
KeyEncryptionAlgorithmIdentifier = __decorate([ | ||
AsnType({ type: AsnTypeTypes.Sequence }) | ||
], KeyEncryptionAlgorithmIdentifier); | ||
export { KeyEncryptionAlgorithmIdentifier }; | ||
let ContentEncryptionAlgorithmIdentifier = class ContentEncryptionAlgorithmIdentifier extends AlgorithmIdentifier { | ||
}; | ||
ContentEncryptionAlgorithmIdentifier = __decorate([ | ||
AsnType({ type: AsnTypeTypes.Sequence }) | ||
], ContentEncryptionAlgorithmIdentifier); | ||
export { ContentEncryptionAlgorithmIdentifier }; | ||
let MessageAuthenticationCodeAlgorithm = class MessageAuthenticationCodeAlgorithm extends AlgorithmIdentifier { | ||
}; | ||
MessageAuthenticationCodeAlgorithm = __decorate([ | ||
AsnType({ type: AsnTypeTypes.Sequence }) | ||
], MessageAuthenticationCodeAlgorithm); | ||
export { MessageAuthenticationCodeAlgorithm }; | ||
let KeyDerivationAlgorithmIdentifier = class KeyDerivationAlgorithmIdentifier extends AlgorithmIdentifier { | ||
}; | ||
KeyDerivationAlgorithmIdentifier = __decorate([ | ||
AsnType({ type: AsnTypeTypes.Sequence }) | ||
], KeyDerivationAlgorithmIdentifier); | ||
export { KeyDerivationAlgorithmIdentifier }; |
/** | ||
* ``` | ||
* ```asn | ||
* AttributeValue ::= ANY | ||
@@ -8,3 +8,3 @@ * ``` | ||
/** | ||
* ``` | ||
* ```asn | ||
* Attribute ::= SEQUENCE { | ||
@@ -11,0 +11,0 @@ * attrType OBJECT IDENTIFIER, |
@@ -5,3 +5,3 @@ import { Time } from "@peculiar/asn1-x509"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* SigningTime ::= Time | ||
@@ -13,3 +13,3 @@ * ``` | ||
/** | ||
* ``` | ||
* ```asn | ||
* Countersignature ::= SignerInfo | ||
@@ -16,0 +16,0 @@ * ``` |
import { SignerInfo } from "../signer_info"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* id-countersignature OBJECT IDENTIFIER ::= { iso(1) member-body(2) | ||
@@ -10,3 +10,3 @@ * us(840) rsadsi(113549) pkcs(1) pkcs9(9) 6 } | ||
/** | ||
* ``` | ||
* ```asn | ||
* SigningTime ::= Time | ||
@@ -13,0 +13,0 @@ * ``` |
@@ -5,3 +5,3 @@ export * from "./counter_signature"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* id-contentType OBJECT IDENTIFIER ::= { iso(1) member-body(2) | ||
@@ -8,0 +8,0 @@ * us(840) rsadsi(113549) pkcs(1) pkcs9(9) 3 } |
import { OctetString } from "@peculiar/asn1-schema"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* id-messageDigest OBJECT IDENTIFIER ::= { iso(1) member-body(2) | ||
@@ -10,3 +10,3 @@ * us(840) rsadsi(113549) pkcs(1) pkcs9(9) 4 } | ||
/** | ||
* ``` | ||
* ```asn | ||
* MessageDigest ::= OCTET STRING | ||
@@ -13,0 +13,0 @@ * ``` |
import { Time } from "@peculiar/asn1-x509"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* id-signingTime OBJECT IDENTIFIER ::= { iso(1) member-body(2) | ||
@@ -10,3 +10,3 @@ * us(840) rsadsi(113549) pkcs(1) pkcs9(9) 5 } | ||
/** | ||
* ``` | ||
* ```asn | ||
* SigningTime ::= Time | ||
@@ -13,0 +13,0 @@ * ``` |
@@ -5,3 +5,3 @@ import { AsnArray } from "@peculiar/asn1-schema"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* OtherCertificateFormat ::= SEQUENCE { | ||
@@ -18,3 +18,3 @@ * otherCertFormat OBJECT IDENTIFIER, | ||
/** | ||
* ``` | ||
* ```asn | ||
* CertificateChoices ::= CHOICE { | ||
@@ -35,3 +35,3 @@ * certificate Certificate, | ||
/** | ||
* ``` | ||
* ```asn | ||
* CertificateSet ::= SET OF CertificateChoices | ||
@@ -38,0 +38,0 @@ * ``` |
import { ContentType } from "./types"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* ContentInfo ::= SEQUENCE { | ||
@@ -5,0 +5,0 @@ * contentType ContentType, |
@@ -9,3 +9,3 @@ import { OctetString } from "@peculiar/asn1-schema"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* EncapsulatedContentInfo ::= SEQUENCE { | ||
@@ -12,0 +12,0 @@ * eContentType ContentType, |
@@ -5,4 +5,13 @@ export * from "./attribute"; | ||
export * from "./encapsulated_content_info"; | ||
export * from "./encrypted_content_info"; | ||
export * from "./enveloped_data"; | ||
export * from "./issuer_and_serial_number"; | ||
export * from "./kek_recipient_info"; | ||
export * from "./key_agree_recipient_info"; | ||
export * from "./key_trans_recipient_info"; | ||
export * from "./object_identifiers"; | ||
export * from "./originator_info"; | ||
export * from "./password_recipient_info"; | ||
export * from "./recipient_info"; | ||
export * from "./recipient_infos"; | ||
export * from "./revocation_info_choice"; | ||
@@ -9,0 +18,0 @@ export * from "./signed_data"; |
import { Name } from "@peculiar/asn1-x509"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* IssuerAndSerialNumber ::= SEQUENCE { | ||
@@ -15,3 +15,3 @@ * issuer Name, | ||
/** | ||
* ``` | ||
* ```asn | ||
* CertificateSerialNumber ::= INTEGER | ||
@@ -18,0 +18,0 @@ * ``` |
/** | ||
* ``` | ||
* ```asn | ||
* id-ct-contentInfo OBJECT IDENTIFIER ::= { iso(1) member-body(2) | ||
@@ -9,3 +9,3 @@ * us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) ct(1) 6 } | ||
/** | ||
* ``` | ||
* ```asn | ||
* id-data OBJECT IDENTIFIER ::= { iso(1) member-body(2) | ||
@@ -17,3 +17,3 @@ * us(840) rsadsi(113549) pkcs(1) pkcs7(7) 1 } | ||
/** | ||
* ``` | ||
* ```asn | ||
* id-signedData OBJECT IDENTIFIER ::= { iso(1) member-body(2) | ||
@@ -25,3 +25,3 @@ * us(840) rsadsi(113549) pkcs(1) pkcs7(7) 2 } | ||
/** | ||
* ``` | ||
* ```asn | ||
* id-envelopedData OBJECT IDENTIFIER ::= { iso(1) member-body(2) | ||
@@ -33,3 +33,3 @@ * us(840) rsadsi(113549) pkcs(1) pkcs7(7) 3 } | ||
/** | ||
* ``` | ||
* ```asn | ||
* id-digestedData OBJECT IDENTIFIER ::= { iso(1) member-body(2) | ||
@@ -41,3 +41,3 @@ * us(840) rsadsi(113549) pkcs(1) pkcs7(7) 5 } | ||
/** | ||
* ``` | ||
* ```asn | ||
* id-encryptedData OBJECT IDENTIFIER ::= { iso(1) member-body(2) | ||
@@ -49,3 +49,3 @@ * us(840) rsadsi(113549) pkcs(1) pkcs7(7) 6 } | ||
/** | ||
* ``` | ||
* ```asn | ||
* id-ct-authData OBJECT IDENTIFIER ::= { iso(1) member-body(2) | ||
@@ -52,0 +52,0 @@ * us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) ct(1) 2 } |
import { AsnArray } from "@peculiar/asn1-schema"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* id-ri OBJECT IDENTIFIER ::= | ||
@@ -11,3 +11,3 @@ * { iso(1) identified-organization(3) | ||
/** | ||
* ``` | ||
* ```asn | ||
* id-ri-ocsp-response OBJECT IDENTIFIER ::= { id-ri 2 } | ||
@@ -18,3 +18,3 @@ * ``` | ||
/** | ||
* ``` | ||
* ```asn | ||
* id-ri-scvp OBJECT IDENTIFIER ::= { id-ri 4 } | ||
@@ -25,3 +25,3 @@ * ``` | ||
/** | ||
* ``` | ||
* ```asn | ||
* OtherRevocationInfoFormat ::= SEQUENCE { | ||
@@ -38,3 +38,3 @@ * otherRevInfoFormat OBJECT IDENTIFIER, | ||
/** | ||
* ``` | ||
* ```asn | ||
* RevocationInfoChoice ::= CHOICE { | ||
@@ -50,3 +50,3 @@ * crl CertificateList, | ||
/** | ||
* ``` | ||
* ```asn | ||
* RevocationInfoChoices ::= SET OF RevocationInfoChoice | ||
@@ -53,0 +53,0 @@ * ``` |
@@ -8,3 +8,3 @@ import { AsnArray } from "@peculiar/asn1-schema"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* DigestAlgorithmIdentifiers ::= SET OF DigestAlgorithmIdentifier | ||
@@ -17,3 +17,3 @@ * ``` | ||
/** | ||
* ``` | ||
* ```asn | ||
* SignedData ::= SEQUENCE { | ||
@@ -20,0 +20,0 @@ * version CMSVersion, |
import { IssuerAndSerialNumber } from "./issuer_and_serial_number"; | ||
import { SubjectKeyIdentifier } from "@peculiar/asn1-x509"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* SignerIdentifier ::= CHOICE { | ||
@@ -6,0 +6,0 @@ * issuerAndSerialNumber IssuerAndSerialNumber, |
@@ -6,3 +6,3 @@ import { AsnArray, OctetString } from "@peculiar/asn1-schema"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* SignedAttributes ::= SET SIZE (1..MAX) OF Attribute | ||
@@ -13,3 +13,3 @@ * ``` | ||
/** | ||
* ``` | ||
* ```asn | ||
* UnsignedAttributes ::= SET SIZE (1..MAX) OF Attribute | ||
@@ -20,3 +20,3 @@ * ``` | ||
/** | ||
* ``` | ||
* ```asn | ||
* SignatureValue ::= OCTET STRING | ||
@@ -27,3 +27,3 @@ * ``` | ||
/** | ||
* ``` | ||
* ```asn | ||
* SignerInfo ::= SEQUENCE { | ||
@@ -50,3 +50,3 @@ * version CMSVersion, | ||
/** | ||
* ``` | ||
* ```asn | ||
* SignerInfos ::= SET OF SignerInfo | ||
@@ -53,0 +53,0 @@ * ``` |
import { AlgorithmIdentifier } from "@peculiar/asn1-x509"; | ||
import { OctetString } from "@peculiar/asn1-schema"; | ||
/** | ||
* ``` | ||
* ```asn | ||
* ContentType ::= OBJECT IDENTIFIER | ||
@@ -9,3 +10,3 @@ * ``` | ||
/** | ||
* ``` | ||
* ```asn | ||
* CMSVersion ::= INTEGER { v0(0), v1(1), v2(2), v3(3), v4(4), v5(5) } | ||
@@ -23,3 +24,9 @@ * ``` | ||
/** | ||
* ```asn | ||
* EncryptedKey ::= OCTET STRING | ||
* ``` | ||
*/ | ||
export declare type EncryptedKey = OctetString; | ||
/** | ||
* ```asn | ||
* DigestAlgorithmIdentifier ::= AlgorithmIdentifier | ||
@@ -31,3 +38,3 @@ * ``` | ||
/** | ||
* ``` | ||
* ```asn | ||
* SignatureAlgorithmIdentifier ::= AlgorithmIdentifier | ||
@@ -38,1 +45,29 @@ * ``` | ||
} | ||
/** | ||
* ```asn | ||
* KeyEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier | ||
* ``` | ||
*/ | ||
export declare class KeyEncryptionAlgorithmIdentifier extends AlgorithmIdentifier { | ||
} | ||
/** | ||
* ```asn | ||
* ContentEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier | ||
* ``` | ||
*/ | ||
export declare class ContentEncryptionAlgorithmIdentifier extends AlgorithmIdentifier { | ||
} | ||
/** | ||
* ```asn | ||
* MessageAuthenticationCodeAlgorithm ::= AlgorithmIdentifier | ||
* ``` | ||
*/ | ||
export declare class MessageAuthenticationCodeAlgorithm extends AlgorithmIdentifier { | ||
} | ||
/** | ||
* ```asn | ||
* KeyDerivationAlgorithmIdentifier ::= AlgorithmIdentifier | ||
* ``` | ||
*/ | ||
export declare class KeyDerivationAlgorithmIdentifier extends AlgorithmIdentifier { | ||
} |
{ | ||
"name": "@peculiar/asn1-cms", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "ASN.1 schema of `Cryptographic Message Syntax (CMS)` (RFC5652)", | ||
@@ -43,3 +43,3 @@ "files": [ | ||
}, | ||
"gitHead": "51c0ffbe6b3e2ff06883daaa20658e94378f7080" | ||
"gitHead": "28d0b6e64e4cb9d95523fb4eba83e8eeb28ccfb5" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
209772
87
2513