UNPKG

@wildboar/pki-stub

Version:
47 lines 2.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_AttributeCertificate = exports._decode_AttributeCertificate = void 0; const SIGNED_ta_1 = require("../PKI-Stub/SIGNED.ta"); const TBSAttributeCertificate_ta_1 = require("../PKI-Stub/TBSAttributeCertificate.ta"); /* END_OF_SYMBOL_DEFINITION AttributeCertificate */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_AttributeCertificate */ let _cached_decoder_for_AttributeCertificate = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_AttributeCertificate */ /* START_OF_SYMBOL_DEFINITION _decode_AttributeCertificate */ /** * @summary Decodes an ASN.1 element into a(n) AttributeCertificate * @function * @param {_Element} el The element being decoded. * @returns {AttributeCertificate} The decoded data structure. */ function _decode_AttributeCertificate(el) { if (!_cached_decoder_for_AttributeCertificate) { _cached_decoder_for_AttributeCertificate = SIGNED_ta_1._get_decoder_for_SIGNED(TBSAttributeCertificate_ta_1._decode_TBSAttributeCertificate); } return _cached_decoder_for_AttributeCertificate(el); } exports._decode_AttributeCertificate = _decode_AttributeCertificate; /* END_OF_SYMBOL_DEFINITION _decode_AttributeCertificate */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_AttributeCertificate */ let _cached_encoder_for_AttributeCertificate = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_AttributeCertificate */ /* START_OF_SYMBOL_DEFINITION _encode_AttributeCertificate */ /** * @summary Encodes a(n) AttributeCertificate 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 AttributeCertificate, encoded as an ASN.1 Element. */ function _encode_AttributeCertificate(value, elGetter) { if (!_cached_encoder_for_AttributeCertificate) { _cached_encoder_for_AttributeCertificate = SIGNED_ta_1._get_encoder_for_SIGNED(TBSAttributeCertificate_ta_1._encode_TBSAttributeCertificate); } return _cached_encoder_for_AttributeCertificate(value, elGetter); } exports._encode_AttributeCertificate = _encode_AttributeCertificate; /* END_OF_SYMBOL_DEFINITION _encode_AttributeCertificate */ /* eslint-enable */ //# sourceMappingURL=AttributeCertificate.ta.js.map