pkcs-ts
Version:
PKCS #1 through #15 (Except #11) - Private and Public Keys, Certificates, and More
22 lines • 1.29 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_ExtendedCertificate = exports._decode_ExtendedCertificate = void 0;
const SIGNED_ta_1 = require("x500-ts/dist/node/modules/AuthenticationFramework/SIGNED.ta");
const ExtendedCertificateInfo_ta_1 = require("../PKCS7/ExtendedCertificateInfo.ta");
let _cached_decoder_for_ExtendedCertificate = null;
function _decode_ExtendedCertificate(el) {
if (!_cached_decoder_for_ExtendedCertificate) {
_cached_decoder_for_ExtendedCertificate = SIGNED_ta_1._get_decoder_for_SIGNED(ExtendedCertificateInfo_ta_1._decode_ExtendedCertificateInfo);
}
return _cached_decoder_for_ExtendedCertificate(el);
}
exports._decode_ExtendedCertificate = _decode_ExtendedCertificate;
let _cached_encoder_for_ExtendedCertificate = null;
function _encode_ExtendedCertificate(value, elGetter) {
if (!_cached_encoder_for_ExtendedCertificate) {
_cached_encoder_for_ExtendedCertificate = SIGNED_ta_1._get_encoder_for_SIGNED(ExtendedCertificateInfo_ta_1._encode_ExtendedCertificateInfo);
}
return _cached_encoder_for_ExtendedCertificate(value, elGetter);
}
exports._encode_ExtendedCertificate = _encode_ExtendedCertificate;
//# sourceMappingURL=ExtendedCertificate.ta.js.map