Spaces:
Sleeping
Sleeping
File size: 2,020 Bytes
2a1c46d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | var DigestAlgorithmIdentifiers_1;
import { __decorate } from "tslib";
import { AsnProp, AsnPropTypes, AsnArray, AsnType, AsnTypeTypes, } from "@peculiar/asn1-schema";
import { CertificateSet } from "./certificate_choices.js";
import { CMSVersion, DigestAlgorithmIdentifier } from "./types.js";
import { EncapsulatedContentInfo } from "./encapsulated_content_info.js";
import { RevocationInfoChoices } from "./revocation_info_choice.js";
import { SignerInfos } from "./signer_info.js";
let DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = class DigestAlgorithmIdentifiers extends AsnArray {
constructor(items) {
super(items);
Object.setPrototypeOf(this, DigestAlgorithmIdentifiers_1.prototype);
}
};
DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = __decorate([
AsnType({
type: AsnTypeTypes.Set, itemType: DigestAlgorithmIdentifier,
})
], DigestAlgorithmIdentifiers);
export { DigestAlgorithmIdentifiers };
export class SignedData {
version = CMSVersion.v0;
digestAlgorithms = new DigestAlgorithmIdentifiers();
encapContentInfo = new EncapsulatedContentInfo();
certificates;
crls;
signerInfos = new SignerInfos();
constructor(params = {}) {
Object.assign(this, params);
}
}
__decorate([
AsnProp({ type: AsnPropTypes.Integer })
], SignedData.prototype, "version", void 0);
__decorate([
AsnProp({ type: DigestAlgorithmIdentifiers })
], SignedData.prototype, "digestAlgorithms", void 0);
__decorate([
AsnProp({ type: EncapsulatedContentInfo })
], SignedData.prototype, "encapContentInfo", void 0);
__decorate([
AsnProp({
type: CertificateSet, context: 0, implicit: true, optional: true,
})
], SignedData.prototype, "certificates", void 0);
__decorate([
AsnProp({
type: RevocationInfoChoices, context: 1, implicit: true, optional: true,
})
], SignedData.prototype, "crls", void 0);
__decorate([
AsnProp({ type: SignerInfos })
], SignedData.prototype, "signerInfos", void 0);
|