@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
49 lines • 2.56 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_SignerInfos = exports._decode_SignerInfos = exports._encode_SignerInfo = exports._decode_SignerInfo = exports.SignerInfo = void 0;
const $ = require("asn1-ts/dist/node/functional");
const SignerInfo_ta_1 = require("../CryptographicMessageSyntax/SignerInfo.ta");
var SignerInfo_ta_2 = require("../CryptographicMessageSyntax/SignerInfo.ta");
Object.defineProperty(exports, "SignerInfo", { enumerable: true, get: function () { return SignerInfo_ta_2.SignerInfo; } });
Object.defineProperty(exports, "_decode_SignerInfo", { enumerable: true, get: function () { return SignerInfo_ta_2._decode_SignerInfo; } });
Object.defineProperty(exports, "_encode_SignerInfo", { enumerable: true, get: function () { return SignerInfo_ta_2._encode_SignerInfo; } });
/* END_OF_SYMBOL_DEFINITION SignerInfos */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_SignerInfos */
let _cached_decoder_for_SignerInfos = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_SignerInfos */
/* START_OF_SYMBOL_DEFINITION _decode_SignerInfos */
/**
* @summary Decodes an ASN.1 element into a(n) SignerInfos
* @function
* @param {_Element} el The element being decoded.
* @returns {SignerInfos} The decoded data structure.
*/
function _decode_SignerInfos(el) {
if (!_cached_decoder_for_SignerInfos) {
_cached_decoder_for_SignerInfos = $._decodeSetOf(() => SignerInfo_ta_1._decode_SignerInfo);
}
return _cached_decoder_for_SignerInfos(el);
}
exports._decode_SignerInfos = _decode_SignerInfos;
/* END_OF_SYMBOL_DEFINITION _decode_SignerInfos */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_SignerInfos */
let _cached_encoder_for_SignerInfos = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_SignerInfos */
/* START_OF_SYMBOL_DEFINITION _encode_SignerInfos */
/**
* @summary Encodes a(n) SignerInfos 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 SignerInfos, encoded as an ASN.1 Element.
*/
function _encode_SignerInfos(value, elGetter) {
if (!_cached_encoder_for_SignerInfos) {
_cached_encoder_for_SignerInfos = $._encodeSetOf(() => SignerInfo_ta_1._encode_SignerInfo, $.BER);
}
return _cached_encoder_for_SignerInfos(value, elGetter);
}
exports._encode_SignerInfos = _encode_SignerInfos;
/* END_OF_SYMBOL_DEFINITION _encode_SignerInfos */
/* eslint-enable */
//# sourceMappingURL=SignerInfos.ta.js.map