UNPKG

@wildboar/pkcs

Version:
44 lines 1.89 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_DSAPrivateKey = exports._decode_DSAPrivateKey = void 0; const $ = require("asn1-ts/dist/node/functional"); /* END_OF_SYMBOL_DEFINITION DSAPrivateKey */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_DSAPrivateKey */ let _cached_decoder_for_DSAPrivateKey = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_DSAPrivateKey */ /* START_OF_SYMBOL_DEFINITION _decode_DSAPrivateKey */ /** * @summary Decodes an ASN.1 element into a(n) DSAPrivateKey * @function * @param {_Element} el The element being decoded. * @returns {DSAPrivateKey} The decoded data structure. */ function _decode_DSAPrivateKey(el) { if (!_cached_decoder_for_DSAPrivateKey) { _cached_decoder_for_DSAPrivateKey = $._decodeInteger; } return _cached_decoder_for_DSAPrivateKey(el); } exports._decode_DSAPrivateKey = _decode_DSAPrivateKey; /* END_OF_SYMBOL_DEFINITION _decode_DSAPrivateKey */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_DSAPrivateKey */ let _cached_encoder_for_DSAPrivateKey = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_DSAPrivateKey */ /* START_OF_SYMBOL_DEFINITION _encode_DSAPrivateKey */ /** * @summary Encodes a(n) DSAPrivateKey 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 DSAPrivateKey, encoded as an ASN.1 Element. */ function _encode_DSAPrivateKey(value, elGetter) { if (!_cached_encoder_for_DSAPrivateKey) { _cached_encoder_for_DSAPrivateKey = $._encodeInteger; } return _cached_encoder_for_DSAPrivateKey(value, elGetter); } exports._encode_DSAPrivateKey = _encode_DSAPrivateKey; /* END_OF_SYMBOL_DEFINITION _encode_DSAPrivateKey */ /* eslint-enable */ //# sourceMappingURL=DSAPrivateKey.ta.js.map