UNPKG

@wildboar/pkcs

Version:
48 lines 2.55 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_RecipientInfos = exports._decode_RecipientInfos = exports._encode_RecipientInfo = exports._decode_RecipientInfo = void 0; const $ = 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; } }); /* END_OF_SYMBOL_DEFINITION RecipientInfos */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_RecipientInfos */ let _cached_decoder_for_RecipientInfos = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_RecipientInfos */ /* START_OF_SYMBOL_DEFINITION _decode_RecipientInfos */ /** * @summary Decodes an ASN.1 element into a(n) RecipientInfos * @function * @param {_Element} el The element being decoded. * @returns {RecipientInfos} The decoded data structure. */ 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; /* END_OF_SYMBOL_DEFINITION _decode_RecipientInfos */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_RecipientInfos */ let _cached_encoder_for_RecipientInfos = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_RecipientInfos */ /* START_OF_SYMBOL_DEFINITION _encode_RecipientInfos */ /** * @summary Encodes a(n) RecipientInfos 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 RecipientInfos, encoded as an ASN.1 Element. */ 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; /* END_OF_SYMBOL_DEFINITION _encode_RecipientInfos */ /* eslint-enable */ //# sourceMappingURL=RecipientInfos.ta.js.map