pkcs-ts
Version:
PKCS #1 through #15 (Except #11) - Private and Public Keys, Certificates, and More
26 lines • 1.63 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_CertificateSet = exports._decode_CertificateSet = exports._encode_CertificateChoice = exports._decode_CertificateChoice = void 0;
const tslib_1 = require("tslib");
const $ = tslib_1.__importStar(require("asn1-ts/dist/node/functional"));
const CertificateChoice_ta_1 = require("../PKCS7/CertificateChoice.ta");
var CertificateChoice_ta_2 = require("../PKCS7/CertificateChoice.ta");
Object.defineProperty(exports, "_decode_CertificateChoice", { enumerable: true, get: function () { return CertificateChoice_ta_2._decode_CertificateChoice; } });
Object.defineProperty(exports, "_encode_CertificateChoice", { enumerable: true, get: function () { return CertificateChoice_ta_2._encode_CertificateChoice; } });
let _cached_decoder_for_CertificateSet = null;
function _decode_CertificateSet(el) {
if (!_cached_decoder_for_CertificateSet) {
_cached_decoder_for_CertificateSet = $._decodeSetOf(() => CertificateChoice_ta_1._decode_CertificateChoice);
}
return _cached_decoder_for_CertificateSet(el);
}
exports._decode_CertificateSet = _decode_CertificateSet;
let _cached_encoder_for_CertificateSet = null;
function _encode_CertificateSet(value, elGetter) {
if (!_cached_encoder_for_CertificateSet) {
_cached_encoder_for_CertificateSet = $._encodeSetOf(() => CertificateChoice_ta_1._encode_CertificateChoice, $.BER);
}
return _cached_encoder_for_CertificateSet(value, elGetter);
}
exports._encode_CertificateSet = _encode_CertificateSet;
//# sourceMappingURL=CertificateSet.ta.js.map