@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
51 lines • 3.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_Certificates = exports._decode_Certificates = exports._get_encoder_for_PathOrObjects = exports._get_decoder_for_PathOrObjects = exports._encode_CertificateType = exports._decode_CertificateType = void 0;
const CertificateType_ta_1 = require("../PKCS-15/CertificateType.ta");
const PathOrObjects_ta_1 = require("../PKCS-15/PathOrObjects.ta");
var CertificateType_ta_2 = require("../PKCS-15/CertificateType.ta");
Object.defineProperty(exports, "_decode_CertificateType", { enumerable: true, get: function () { return CertificateType_ta_2._decode_CertificateType; } });
Object.defineProperty(exports, "_encode_CertificateType", { enumerable: true, get: function () { return CertificateType_ta_2._encode_CertificateType; } });
var PathOrObjects_ta_2 = require("../PKCS-15/PathOrObjects.ta");
Object.defineProperty(exports, "_get_decoder_for_PathOrObjects", { enumerable: true, get: function () { return PathOrObjects_ta_2._get_decoder_for_PathOrObjects; } });
Object.defineProperty(exports, "_get_encoder_for_PathOrObjects", { enumerable: true, get: function () { return PathOrObjects_ta_2._get_encoder_for_PathOrObjects; } });
/* END_OF_SYMBOL_DEFINITION Certificates */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_Certificates */
let _cached_decoder_for_Certificates = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_Certificates */
/* START_OF_SYMBOL_DEFINITION _decode_Certificates */
/**
* @summary Decodes an ASN.1 element into a(n) Certificates
* @function
* @param {_Element} el The element being decoded.
* @returns {Certificates} The decoded data structure.
*/
function _decode_Certificates(el) {
if (!_cached_decoder_for_Certificates) {
_cached_decoder_for_Certificates = PathOrObjects_ta_1._get_decoder_for_PathOrObjects(CertificateType_ta_1._decode_CertificateType);
}
return _cached_decoder_for_Certificates(el);
}
exports._decode_Certificates = _decode_Certificates;
/* END_OF_SYMBOL_DEFINITION _decode_Certificates */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_Certificates */
let _cached_encoder_for_Certificates = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_Certificates */
/* START_OF_SYMBOL_DEFINITION _encode_Certificates */
/**
* @summary Encodes a(n) Certificates 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 Certificates, encoded as an ASN.1 Element.
*/
function _encode_Certificates(value, elGetter) {
if (!_cached_encoder_for_Certificates) {
_cached_encoder_for_Certificates = PathOrObjects_ta_1._get_encoder_for_PathOrObjects(CertificateType_ta_1._encode_CertificateType);
}
return _cached_encoder_for_Certificates(value, elGetter);
}
exports._encode_Certificates = _encode_Certificates;
/* END_OF_SYMBOL_DEFINITION _encode_Certificates */
/* eslint-enable */
//# sourceMappingURL=Certificates.ta.js.map