@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
45 lines • 2.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_CertificateRevocationLists = exports._decode_CertificateRevocationLists = void 0;
const $ = require("asn1-ts/dist/node/functional");
const CertificateList_ta_1 = require("@wildboar/x500/src/lib/modules/AuthenticationFramework/CertificateList.ta");
/* END_OF_SYMBOL_DEFINITION CertificateRevocationLists */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_CertificateRevocationLists */
let _cached_decoder_for_CertificateRevocationLists = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_CertificateRevocationLists */
/* START_OF_SYMBOL_DEFINITION _decode_CertificateRevocationLists */
/**
* @summary Decodes an ASN.1 element into a(n) CertificateRevocationLists
* @function
* @param {_Element} el The element being decoded.
* @returns {CertificateRevocationLists} The decoded data structure.
*/
function _decode_CertificateRevocationLists(el) {
if (!_cached_decoder_for_CertificateRevocationLists) {
_cached_decoder_for_CertificateRevocationLists = $._decodeSetOf(() => CertificateList_ta_1._decode_CertificateList);
}
return _cached_decoder_for_CertificateRevocationLists(el);
}
exports._decode_CertificateRevocationLists = _decode_CertificateRevocationLists;
/* END_OF_SYMBOL_DEFINITION _decode_CertificateRevocationLists */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_CertificateRevocationLists */
let _cached_encoder_for_CertificateRevocationLists = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_CertificateRevocationLists */
/* START_OF_SYMBOL_DEFINITION _encode_CertificateRevocationLists */
/**
* @summary Encodes a(n) CertificateRevocationLists 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 CertificateRevocationLists, encoded as an ASN.1 Element.
*/
function _encode_CertificateRevocationLists(value, elGetter) {
if (!_cached_encoder_for_CertificateRevocationLists) {
_cached_encoder_for_CertificateRevocationLists = $._encodeSetOf(() => CertificateList_ta_1._encode_CertificateList, $.BER);
}
return _cached_encoder_for_CertificateRevocationLists(value, elGetter);
}
exports._encode_CertificateRevocationLists = _encode_CertificateRevocationLists;
/* END_OF_SYMBOL_DEFINITION _encode_CertificateRevocationLists */
/* eslint-enable */
//# sourceMappingURL=CertificateRevocationLists.ta.js.map