Spaces:
Sleeping
Sleeping
File size: 2,563 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 55 56 57 58 | "use strict";
var DigestAlgorithmIdentifiers_1;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SignedData = exports.DigestAlgorithmIdentifiers = void 0;
const tslib_1 = require("tslib");
const asn1_schema_1 = require("@peculiar/asn1-schema");
const certificate_choices_1 = require("./certificate_choices");
const types_1 = require("./types");
const encapsulated_content_info_1 = require("./encapsulated_content_info");
const revocation_info_choice_1 = require("./revocation_info_choice");
const signer_info_1 = require("./signer_info");
let DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = class DigestAlgorithmIdentifiers extends asn1_schema_1.AsnArray {
constructor(items) {
super(items);
Object.setPrototypeOf(this, DigestAlgorithmIdentifiers_1.prototype);
}
};
exports.DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers;
exports.DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = tslib_1.__decorate([
(0, asn1_schema_1.AsnType)({
type: asn1_schema_1.AsnTypeTypes.Set, itemType: types_1.DigestAlgorithmIdentifier,
})
], DigestAlgorithmIdentifiers);
class SignedData {
version = types_1.CMSVersion.v0;
digestAlgorithms = new DigestAlgorithmIdentifiers();
encapContentInfo = new encapsulated_content_info_1.EncapsulatedContentInfo();
certificates;
crls;
signerInfos = new signer_info_1.SignerInfos();
constructor(params = {}) {
Object.assign(this, params);
}
}
exports.SignedData = SignedData;
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer })
], SignedData.prototype, "version", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: DigestAlgorithmIdentifiers })
], SignedData.prototype, "digestAlgorithms", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: encapsulated_content_info_1.EncapsulatedContentInfo })
], SignedData.prototype, "encapContentInfo", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({
type: certificate_choices_1.CertificateSet, context: 0, implicit: true, optional: true,
})
], SignedData.prototype, "certificates", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({
type: revocation_info_choice_1.RevocationInfoChoices, context: 1, implicit: true, optional: true,
})
], SignedData.prototype, "crls", void 0);
tslib_1.__decorate([
(0, asn1_schema_1.AsnProp)({ type: signer_info_1.SignerInfos })
], SignedData.prototype, "signerInfos", void 0);
|