| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import { __decorate } from "tslib";
- import { AsnProp, AsnPropTypes, OctetString, } from "@peculiar/asn1-schema";
- import { OtherKeyAttribute } from "./other_key_attribute.js";
- import { CMSVersion, KeyEncryptionAlgorithmIdentifier, } from "./types.js";
- export class KEKIdentifier {
- keyIdentifier = new OctetString();
- date;
- other;
- constructor(params = {}) {
- Object.assign(this, params);
- }
- }
- __decorate([
- AsnProp({ type: OctetString })
- ], KEKIdentifier.prototype, "keyIdentifier", void 0);
- __decorate([
- AsnProp({
- type: AsnPropTypes.GeneralizedTime, optional: true,
- })
- ], KEKIdentifier.prototype, "date", void 0);
- __decorate([
- AsnProp({
- type: OtherKeyAttribute, optional: true,
- })
- ], KEKIdentifier.prototype, "other", void 0);
- export class KEKRecipientInfo {
- version = CMSVersion.v4;
- kekid = new KEKIdentifier();
- keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
- encryptedKey = new OctetString();
- constructor(params = {}) {
- Object.assign(this, params);
- }
- }
- __decorate([
- AsnProp({ type: AsnPropTypes.Integer })
- ], KEKRecipientInfo.prototype, "version", void 0);
- __decorate([
- AsnProp({ type: KEKIdentifier })
- ], KEKRecipientInfo.prototype, "kekid", void 0);
- __decorate([
- AsnProp({ type: KeyEncryptionAlgorithmIdentifier })
- ], KEKRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
- __decorate([
- AsnProp({ type: OctetString })
- ], KEKRecipientInfo.prototype, "encryptedKey", void 0);
|