UNPKG

@wildboar/pkcs

Version:
48 lines 2.57 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_CertificateSet = exports._decode_CertificateSet = exports._encode_CertificateChoice = exports._decode_CertificateChoice = void 0; const $ = require("asn1-ts/dist/node/functional"); const CertificateChoice_ta_1 = require("../PKCS7/CertificateChoice.ta"); var CertificateChoice_ta_2 = require("../PKCS7/CertificateChoice.ta"); Object.defineProperty(exports, "_decode_CertificateChoice", { enumerable: true, get: function () { return CertificateChoice_ta_2._decode_CertificateChoice; } }); Object.defineProperty(exports, "_encode_CertificateChoice", { enumerable: true, get: function () { return CertificateChoice_ta_2._encode_CertificateChoice; } }); /* 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(() => CertificateChoice_ta_1._decode_CertificateChoice); } 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(() => CertificateChoice_ta_1._encode_CertificateChoice, $.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