UNPKG

pkcs-ts

Version:

PKCS #1 through #15 (Except #11) - Private and Public Keys, Certificates, and More

26 lines 1.69 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_CertificateSet = exports._decode_CertificateSet = exports._encode_CertificateChoices = exports._decode_CertificateChoices = void 0; const tslib_1 = require("tslib"); const $ = tslib_1.__importStar(require("asn1-ts/dist/node/functional")); const CertificateChoices_ta_1 = require("../CryptographicMessageSyntax/CertificateChoices.ta"); var CertificateChoices_ta_2 = require("../CryptographicMessageSyntax/CertificateChoices.ta"); Object.defineProperty(exports, "_decode_CertificateChoices", { enumerable: true, get: function () { return CertificateChoices_ta_2._decode_CertificateChoices; } }); Object.defineProperty(exports, "_encode_CertificateChoices", { enumerable: true, get: function () { return CertificateChoices_ta_2._encode_CertificateChoices; } }); let _cached_decoder_for_CertificateSet = null; function _decode_CertificateSet(el) { if (!_cached_decoder_for_CertificateSet) { _cached_decoder_for_CertificateSet = $._decodeSetOf(() => CertificateChoices_ta_1._decode_CertificateChoices); } return _cached_decoder_for_CertificateSet(el); } exports._decode_CertificateSet = _decode_CertificateSet; let _cached_encoder_for_CertificateSet = null; function _encode_CertificateSet(value, elGetter) { if (!_cached_encoder_for_CertificateSet) { _cached_encoder_for_CertificateSet = $._encodeSetOf(() => CertificateChoices_ta_1._encode_CertificateChoices, $.BER); } return _cached_encoder_for_CertificateSet(value, elGetter); } exports._encode_CertificateSet = _encode_CertificateSet; //# sourceMappingURL=CertificateSet.ta.js.map