UNPKG

@wildboar/pkcs

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