@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
44 lines • 1.77 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_Signature = exports._decode_Signature = void 0;
const $ = require("asn1-ts/dist/node/functional");
/* END_OF_SYMBOL_DEFINITION Signature */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_Signature */
let _cached_decoder_for_Signature = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_Signature */
/* START_OF_SYMBOL_DEFINITION _decode_Signature */
/**
* @summary Decodes an ASN.1 element into a(n) Signature
* @function
* @param {_Element} el The element being decoded.
* @returns {Signature} The decoded data structure.
*/
function _decode_Signature(el) {
if (!_cached_decoder_for_Signature) {
_cached_decoder_for_Signature = $._decodeBitString;
}
return _cached_decoder_for_Signature(el);
}
exports._decode_Signature = _decode_Signature;
/* END_OF_SYMBOL_DEFINITION _decode_Signature */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_Signature */
let _cached_encoder_for_Signature = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_Signature */
/* START_OF_SYMBOL_DEFINITION _encode_Signature */
/**
* @summary Encodes a(n) Signature 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 Signature, encoded as an ASN.1 Element.
*/
function _encode_Signature(value, elGetter) {
if (!_cached_encoder_for_Signature) {
_cached_encoder_for_Signature = $._encodeBitString;
}
return _cached_encoder_for_Signature(value, elGetter);
}
exports._encode_Signature = _encode_Signature;
/* END_OF_SYMBOL_DEFINITION _encode_Signature */
/* eslint-enable */
//# sourceMappingURL=Signature.ta.js.map