pkcs-ts
Version:
PKCS #1 through #15 (Except #11) - Private and Public Keys, Certificates, and More
26 lines • 1.61 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_RecipientInfos = exports._decode_RecipientInfos = exports._encode_RecipientInfo = exports._decode_RecipientInfo = void 0;
const tslib_1 = require("tslib");
const $ = tslib_1.__importStar(require("asn1-ts/dist/node/functional"));
const RecipientInfo_ta_1 = require("../CryptographicMessageSyntax/RecipientInfo.ta");
var RecipientInfo_ta_2 = require("../CryptographicMessageSyntax/RecipientInfo.ta");
Object.defineProperty(exports, "_decode_RecipientInfo", { enumerable: true, get: function () { return RecipientInfo_ta_2._decode_RecipientInfo; } });
Object.defineProperty(exports, "_encode_RecipientInfo", { enumerable: true, get: function () { return RecipientInfo_ta_2._encode_RecipientInfo; } });
let _cached_decoder_for_RecipientInfos = null;
function _decode_RecipientInfos(el) {
if (!_cached_decoder_for_RecipientInfos) {
_cached_decoder_for_RecipientInfos = $._decodeSetOf(() => RecipientInfo_ta_1._decode_RecipientInfo);
}
return _cached_decoder_for_RecipientInfos(el);
}
exports._decode_RecipientInfos = _decode_RecipientInfos;
let _cached_encoder_for_RecipientInfos = null;
function _encode_RecipientInfos(value, elGetter) {
if (!_cached_encoder_for_RecipientInfos) {
_cached_encoder_for_RecipientInfos = $._encodeSetOf(() => RecipientInfo_ta_1._encode_RecipientInfo, $.BER);
}
return _cached_encoder_for_RecipientInfos(value, elGetter);
}
exports._encode_RecipientInfos = _encode_RecipientInfos;
//# sourceMappingURL=RecipientInfos.ta.js.map