@peculiar/asn1-cms
Advanced tools
Comparing version 2.3.2 to 2.3.3
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EncryptedContentInfo = exports.ExplicitEncryptedContentInfo = exports.ImplicitEncryptedContentInfo = exports.EncryptedContent = void 0; | ||
exports.EncryptedContentInfo = exports.EncryptedContent = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -13,7 +13,7 @@ const asn1_schema_1 = require("@peculiar/asn1-schema"); | ||
tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.OctetString }) | ||
], EncryptedContent.prototype, "single", void 0); | ||
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.OctetString, context: 0, implicit: true, optional: true }) | ||
], EncryptedContent.prototype, "value", void 0); | ||
tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Any }) | ||
], EncryptedContent.prototype, "any", void 0); | ||
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.OctetString, converter: asn1_schema_1.AsnConstructedOctetStringConverter, context: 0, implicit: true, optional: true, repeated: "sequence" }) | ||
], EncryptedContent.prototype, "constructedValue", void 0); | ||
EncryptedContent = tslib_1.__decorate([ | ||
@@ -23,3 +23,3 @@ (0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Choice }) | ||
exports.EncryptedContent = EncryptedContent; | ||
class ImplicitEncryptedContentInfo { | ||
class EncryptedContentInfo { | ||
constructor(params = {}) { | ||
@@ -33,41 +33,9 @@ this.contentType = ""; | ||
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier }) | ||
], ImplicitEncryptedContentInfo.prototype, "contentType", void 0); | ||
], EncryptedContentInfo.prototype, "contentType", void 0); | ||
tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnProp)({ type: types_1.ContentEncryptionAlgorithmIdentifier }) | ||
], ImplicitEncryptedContentInfo.prototype, "contentEncryptionAlgorithm", void 0); | ||
], EncryptedContentInfo.prototype, "contentEncryptionAlgorithm", void 0); | ||
tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.OctetString, context: 0, implicit: true, optional: true }) | ||
], ImplicitEncryptedContentInfo.prototype, "encryptedContent", void 0); | ||
exports.ImplicitEncryptedContentInfo = ImplicitEncryptedContentInfo; | ||
class ExplicitEncryptedContentInfo { | ||
constructor(params = {}) { | ||
this.contentType = ""; | ||
this.contentEncryptionAlgorithm = new types_1.ContentEncryptionAlgorithmIdentifier(); | ||
Object.assign(this, params); | ||
} | ||
} | ||
tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.ObjectIdentifier }) | ||
], ExplicitEncryptedContentInfo.prototype, "contentType", void 0); | ||
tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnProp)({ type: types_1.ContentEncryptionAlgorithmIdentifier }) | ||
], ExplicitEncryptedContentInfo.prototype, "contentEncryptionAlgorithm", void 0); | ||
tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnProp)({ type: EncryptedContent, context: 0, optional: true }) | ||
], ExplicitEncryptedContentInfo.prototype, "encryptedContent", void 0); | ||
exports.ExplicitEncryptedContentInfo = ExplicitEncryptedContentInfo; | ||
let EncryptedContentInfo = class EncryptedContentInfo { | ||
constructor(params = {}) { | ||
Object.assign(this, params); | ||
} | ||
}; | ||
tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnProp)({ type: ImplicitEncryptedContentInfo, optional: true }) | ||
], EncryptedContentInfo.prototype, "implicitEncryptedContentInfo", void 0); | ||
tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnProp)({ type: ExplicitEncryptedContentInfo, optional: true }) | ||
], EncryptedContentInfo.prototype, "explicitEncryptedContentInfo", void 0); | ||
EncryptedContentInfo = tslib_1.__decorate([ | ||
(0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Choice }) | ||
], EncryptedContentInfo); | ||
(0, asn1_schema_1.AsnProp)({ type: EncryptedContent, optional: true }) | ||
], EncryptedContentInfo.prototype, "encryptedContent", void 0); | ||
exports.EncryptedContentInfo = EncryptedContentInfo; |
import { __decorate } from "tslib"; | ||
import { AsnProp, AsnPropTypes, AsnType, AsnTypeTypes, OctetString } from "@peculiar/asn1-schema"; | ||
import { AsnConstructedOctetStringConverter, AsnProp, AsnPropTypes, AsnType, AsnTypeTypes, OctetString } from "@peculiar/asn1-schema"; | ||
import { ContentEncryptionAlgorithmIdentifier } from "./types"; | ||
@@ -10,7 +10,7 @@ let EncryptedContent = class EncryptedContent { | ||
__decorate([ | ||
AsnProp({ type: OctetString }) | ||
], EncryptedContent.prototype, "single", void 0); | ||
AsnProp({ type: OctetString, context: 0, implicit: true, optional: true }) | ||
], EncryptedContent.prototype, "value", void 0); | ||
__decorate([ | ||
AsnProp({ type: AsnPropTypes.Any }) | ||
], EncryptedContent.prototype, "any", void 0); | ||
AsnProp({ type: OctetString, converter: AsnConstructedOctetStringConverter, context: 0, implicit: true, optional: true, repeated: "sequence" }) | ||
], EncryptedContent.prototype, "constructedValue", void 0); | ||
EncryptedContent = __decorate([ | ||
@@ -20,3 +20,3 @@ AsnType({ type: AsnTypeTypes.Choice }) | ||
export { EncryptedContent }; | ||
export class ImplicitEncryptedContentInfo { | ||
export class EncryptedContentInfo { | ||
constructor(params = {}) { | ||
@@ -30,39 +30,8 @@ this.contentType = ""; | ||
AsnProp({ type: AsnPropTypes.ObjectIdentifier }) | ||
], ImplicitEncryptedContentInfo.prototype, "contentType", void 0); | ||
], EncryptedContentInfo.prototype, "contentType", void 0); | ||
__decorate([ | ||
AsnProp({ type: ContentEncryptionAlgorithmIdentifier }) | ||
], ImplicitEncryptedContentInfo.prototype, "contentEncryptionAlgorithm", void 0); | ||
], EncryptedContentInfo.prototype, "contentEncryptionAlgorithm", void 0); | ||
__decorate([ | ||
AsnProp({ type: OctetString, context: 0, implicit: true, optional: true }) | ||
], ImplicitEncryptedContentInfo.prototype, "encryptedContent", void 0); | ||
export class ExplicitEncryptedContentInfo { | ||
constructor(params = {}) { | ||
this.contentType = ""; | ||
this.contentEncryptionAlgorithm = new ContentEncryptionAlgorithmIdentifier(); | ||
Object.assign(this, params); | ||
} | ||
} | ||
__decorate([ | ||
AsnProp({ type: AsnPropTypes.ObjectIdentifier }) | ||
], ExplicitEncryptedContentInfo.prototype, "contentType", void 0); | ||
__decorate([ | ||
AsnProp({ type: ContentEncryptionAlgorithmIdentifier }) | ||
], ExplicitEncryptedContentInfo.prototype, "contentEncryptionAlgorithm", void 0); | ||
__decorate([ | ||
AsnProp({ type: EncryptedContent, context: 0, optional: true }) | ||
], ExplicitEncryptedContentInfo.prototype, "encryptedContent", void 0); | ||
let EncryptedContentInfo = class EncryptedContentInfo { | ||
constructor(params = {}) { | ||
Object.assign(this, params); | ||
} | ||
}; | ||
__decorate([ | ||
AsnProp({ type: ImplicitEncryptedContentInfo, optional: true }) | ||
], EncryptedContentInfo.prototype, "implicitEncryptedContentInfo", void 0); | ||
__decorate([ | ||
AsnProp({ type: ExplicitEncryptedContentInfo, optional: true }) | ||
], EncryptedContentInfo.prototype, "explicitEncryptedContentInfo", void 0); | ||
EncryptedContentInfo = __decorate([ | ||
AsnType({ type: AsnTypeTypes.Choice }) | ||
], EncryptedContentInfo); | ||
export { EncryptedContentInfo }; | ||
AsnProp({ type: EncryptedContent, optional: true }) | ||
], EncryptedContentInfo.prototype, "encryptedContent", void 0); |
@@ -8,25 +8,7 @@ import { OctetString } from "@peculiar/asn1-schema"; | ||
*/ | ||
export declare type PrimitiveEncryptedContent = OctetString; | ||
/** | ||
* ```asn | ||
* EncryptedContent ::= OCTET STRING | ||
* ``` | ||
*/ | ||
export declare class EncryptedContent { | ||
single?: OctetString; | ||
any?: ArrayBuffer; | ||
value?: OctetString; | ||
constructedValue?: OctetString[]; | ||
constructor(params?: Partial<EncryptedContent>); | ||
} | ||
export declare class ImplicitEncryptedContentInfo { | ||
contentType: ContentType; | ||
contentEncryptionAlgorithm: ContentEncryptionAlgorithmIdentifier; | ||
encryptedContent?: PrimitiveEncryptedContent; | ||
constructor(params?: Partial<ImplicitEncryptedContentInfo>); | ||
} | ||
export declare class ExplicitEncryptedContentInfo { | ||
contentType: ContentType; | ||
contentEncryptionAlgorithm: ContentEncryptionAlgorithmIdentifier; | ||
encryptedContent?: EncryptedContent; | ||
constructor(params?: Partial<ExplicitEncryptedContentInfo>); | ||
} | ||
/** | ||
@@ -41,5 +23,6 @@ * ```asn | ||
export declare class EncryptedContentInfo { | ||
implicitEncryptedContentInfo?: ImplicitEncryptedContentInfo; | ||
explicitEncryptedContentInfo?: ExplicitEncryptedContentInfo; | ||
contentType: ContentType; | ||
contentEncryptionAlgorithm: ContentEncryptionAlgorithmIdentifier; | ||
encryptedContent?: EncryptedContent; | ||
constructor(params?: Partial<EncryptedContentInfo>); | ||
} |
{ | ||
"name": "@peculiar/asn1-cms", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"description": "ASN.1 schema of `Cryptographic Message Syntax (CMS)` (RFC5652)", | ||
@@ -37,9 +37,9 @@ "files": [ | ||
"dependencies": { | ||
"@peculiar/asn1-schema": "^2.3.0", | ||
"@peculiar/asn1-x509": "^2.3.2", | ||
"@peculiar/asn1-x509-attr": "^2.3.2", | ||
"@peculiar/asn1-schema": "^2.3.3", | ||
"@peculiar/asn1-x509": "^2.3.3", | ||
"@peculiar/asn1-x509-attr": "^2.3.3", | ||
"asn1js": "^3.0.5", | ||
"tslib": "^2.4.0" | ||
}, | ||
"gitHead": "59fd8d7ac86199485d7f174eb04e12b076469f13" | ||
"gitHead": "7f525620147806229cc67c08ceffba44e340e735" | ||
} |
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
201664
2433