UNPKG

@wildboar/pkcs

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