UNPKG

@wildboar/pki-stub

Version:
33 lines 1.42 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_GeneralNames = exports._decode_GeneralNames = void 0; const $ = require("asn1-ts/dist/node/functional"); const GeneralName_ta_1 = require("../PKI-Stub/GeneralName.ta"); /* END_OF_SYMBOL_DEFINITION GeneralNames */ /* START_OF_SYMBOL_DEFINITION _decode_GeneralNames */ /** * @summary Decodes an ASN.1 element into a(n) GeneralNames * @function * @param {_Element} el The element being decoded. * @returns {GeneralNames} The decoded data structure. */ function _decode_GeneralNames(el) { return $._decodeSequenceOf(() => GeneralName_ta_1._decode_GeneralName)(el); } exports._decode_GeneralNames = _decode_GeneralNames; /* END_OF_SYMBOL_DEFINITION _decode_GeneralNames */ /* START_OF_SYMBOL_DEFINITION _encode_GeneralNames */ /** * @summary Encodes a(n) GeneralNames 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 GeneralNames, encoded as an ASN.1 Element. */ function _encode_GeneralNames(value, elGetter) { return $._encodeSequenceOf(() => GeneralName_ta_1._encode_GeneralName, $.BER)(value, elGetter); } exports._encode_GeneralNames = _encode_GeneralNames; /* END_OF_SYMBOL_DEFINITION _encode_GeneralNames */ /* eslint-enable */ //# sourceMappingURL=GeneralNames.ta.js.map