UNPKG

@wildboar/pkcs

Version:
48 lines 2.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_CertificateSet = exports._decode_CertificateSet = exports._encode_CertificateChoices = exports._decode_CertificateChoices = void 0; const $ = 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; } }); /* END_OF_SYMBOL_DEFINITION CertificateSet */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_CertificateSet */ let _cached_decoder_for_CertificateSet = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_CertificateSet */ /* START_OF_SYMBOL_DEFINITION _decode_CertificateSet */ /** * @summary Decodes an ASN.1 element into a(n) CertificateSet * @function * @param {_Element} el The element being decoded. * @returns {CertificateSet} The decoded data structure. */ 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; /* END_OF_SYMBOL_DEFINITION _decode_CertificateSet */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_CertificateSet */ let _cached_encoder_for_CertificateSet = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_CertificateSet */ /* START_OF_SYMBOL_DEFINITION _encode_CertificateSet */ /** * @summary Encodes a(n) CertificateSet into an ASN.1 Element. * @function * @param {value} el The element being decoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The CertificateSet, encoded as an ASN.1 Element. */ 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; /* END_OF_SYMBOL_DEFINITION _encode_CertificateSet */ /* eslint-enable */ //# sourceMappingURL=CertificateSet.ta.js.map