UNPKG

@wildboar/pkcs

Version:
48 lines 2.75 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_PSourceAlgorithm = exports._decode_PSourceAlgorithm = exports._encode_AlgorithmIdentifier = exports._decode_AlgorithmIdentifier = exports.AlgorithmIdentifier = void 0; const AlgorithmIdentifier_ta_1 = require("../PKCS-1/AlgorithmIdentifier.ta"); var AlgorithmIdentifier_ta_2 = require("../PKCS-1/AlgorithmIdentifier.ta"); Object.defineProperty(exports, "AlgorithmIdentifier", { enumerable: true, get: function () { return AlgorithmIdentifier_ta_2.AlgorithmIdentifier; } }); Object.defineProperty(exports, "_decode_AlgorithmIdentifier", { enumerable: true, get: function () { return AlgorithmIdentifier_ta_2._decode_AlgorithmIdentifier; } }); Object.defineProperty(exports, "_encode_AlgorithmIdentifier", { enumerable: true, get: function () { return AlgorithmIdentifier_ta_2._encode_AlgorithmIdentifier; } }); /* END_OF_SYMBOL_DEFINITION PSourceAlgorithm */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_PSourceAlgorithm */ let _cached_decoder_for_PSourceAlgorithm = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_PSourceAlgorithm */ /* START_OF_SYMBOL_DEFINITION _decode_PSourceAlgorithm */ /** * @summary Decodes an ASN.1 element into a(n) PSourceAlgorithm * @function * @param {_Element} el The element being decoded. * @returns {PSourceAlgorithm} The decoded data structure. */ function _decode_PSourceAlgorithm(el) { if (!_cached_decoder_for_PSourceAlgorithm) { _cached_decoder_for_PSourceAlgorithm = AlgorithmIdentifier_ta_1._decode_AlgorithmIdentifier; } return _cached_decoder_for_PSourceAlgorithm(el); } exports._decode_PSourceAlgorithm = _decode_PSourceAlgorithm; /* END_OF_SYMBOL_DEFINITION _decode_PSourceAlgorithm */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_PSourceAlgorithm */ let _cached_encoder_for_PSourceAlgorithm = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_PSourceAlgorithm */ /* START_OF_SYMBOL_DEFINITION _encode_PSourceAlgorithm */ /** * @summary Encodes a(n) PSourceAlgorithm 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 PSourceAlgorithm, encoded as an ASN.1 Element. */ function _encode_PSourceAlgorithm(value, elGetter) { if (!_cached_encoder_for_PSourceAlgorithm) { _cached_encoder_for_PSourceAlgorithm = AlgorithmIdentifier_ta_1._encode_AlgorithmIdentifier; } return _cached_encoder_for_PSourceAlgorithm(value, elGetter); } exports._encode_PSourceAlgorithm = _encode_PSourceAlgorithm; /* END_OF_SYMBOL_DEFINITION _encode_PSourceAlgorithm */ /* eslint-enable */ //# sourceMappingURL=PSourceAlgorithm.ta.js.map