UNPKG

@wildboar/pkcs

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