@wildboar/pki-stub
Version:
X.510 PKI-Stub ASN.1 data structures in TypeScript
47 lines • 1.91 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_CertAVL = exports._decode_CertAVL = void 0;
const SIGNED_ta_1 = require("../PKI-Stub/SIGNED.ta");
const TBSCertAVL_ta_1 = require("../PKI-Stub/TBSCertAVL.ta");
/* END_OF_SYMBOL_DEFINITION CertAVL */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_CertAVL */
let _cached_decoder_for_CertAVL = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_CertAVL */
/* START_OF_SYMBOL_DEFINITION _decode_CertAVL */
/**
* @summary Decodes an ASN.1 element into a(n) CertAVL
* @function
* @param {_Element} el The element being decoded.
* @returns {CertAVL} The decoded data structure.
*/
function _decode_CertAVL(el) {
if (!_cached_decoder_for_CertAVL) {
_cached_decoder_for_CertAVL =
SIGNED_ta_1._get_decoder_for_SIGNED(TBSCertAVL_ta_1._decode_TBSCertAVL);
}
return _cached_decoder_for_CertAVL(el);
}
exports._decode_CertAVL = _decode_CertAVL;
/* END_OF_SYMBOL_DEFINITION _decode_CertAVL */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_CertAVL */
let _cached_encoder_for_CertAVL = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_CertAVL */
/* START_OF_SYMBOL_DEFINITION _encode_CertAVL */
/**
* @summary Encodes a(n) CertAVL 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 CertAVL, encoded as an ASN.1 Element.
*/
function _encode_CertAVL(value, elGetter) {
if (!_cached_encoder_for_CertAVL) {
_cached_encoder_for_CertAVL =
SIGNED_ta_1._get_encoder_for_SIGNED(TBSCertAVL_ta_1._encode_TBSCertAVL);
}
return _cached_encoder_for_CertAVL(value, elGetter);
}
exports._encode_CertAVL = _encode_CertAVL;
/* END_OF_SYMBOL_DEFINITION _encode_CertAVL */
/* eslint-enable */
//# sourceMappingURL=CertAVL.ta.js.map