Files
NapCatQQ/.pnpm-store/v3/files/30/ee715c6d71fce9e6be3678ce03018ad4fcf11023848a56068330fa0c1a9bfd959d4d8ff95a15b3e3b595d4838100eb869a244546e69f7aa54800bacddf611a
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

42 lines
1.5 KiB
Plaintext

import { __decorate } from "tslib";
import { AsnConstructedOctetStringConverter, AsnProp, AsnPropTypes, AsnType, AsnTypeTypes, OctetString, } from "@peculiar/asn1-schema";
import { ContentEncryptionAlgorithmIdentifier } from "./types";
let EncryptedContent = class EncryptedContent {
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 {
constructor(params = {}) {
this.contentType = "";
this.contentEncryptionAlgorithm = new ContentEncryptionAlgorithmIdentifier();
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);