import { __decorate } from "tslib"; import { AsnConstructedOctetStringConverter, AsnProp, AsnPropTypes, AsnType, AsnTypeTypes, OctetString, } from "@peculiar/asn1-schema"; import { ContentEncryptionAlgorithmIdentifier } from "./types.js"; let EncryptedContent = class EncryptedContent { value; constructedValue; constructor(params = {}) { Object.assign(this, params); } }; __decorate([ AsnProp({ type: OctetString, context: 0, implicit: true, optional: true, }) ], EncryptedContent.prototype, "value", void 0); __decorate([ AsnProp({ type: OctetString, converter: AsnConstructedOctetStringConverter, context: 0, implicit: true, optional: true, repeated: "sequence", }) ], EncryptedContent.prototype, "constructedValue", void 0); EncryptedContent = __decorate([ AsnType({ type: AsnTypeTypes.Choice }) ], EncryptedContent); export { EncryptedContent }; export class EncryptedContentInfo { contentType = ""; contentEncryptionAlgorithm = new ContentEncryptionAlgorithmIdentifier(); encryptedContent; constructor(params = {}) { Object.assign(this, params); } } __decorate([ AsnProp({ type: AsnPropTypes.ObjectIdentifier }) ], EncryptedContentInfo.prototype, "contentType", void 0); __decorate([ AsnProp({ type: ContentEncryptionAlgorithmIdentifier }) ], EncryptedContentInfo.prototype, "contentEncryptionAlgorithm", void 0); __decorate([ AsnProp({ type: EncryptedContent, optional: true, }) ], EncryptedContentInfo.prototype, "encryptedContent", void 0);