@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
49 lines • 2.73 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_OtherPrimeInfos = exports._decode_OtherPrimeInfos = exports._encode_OtherPrimeInfo = exports._decode_OtherPrimeInfo = exports.OtherPrimeInfo = void 0;
const $ = require("asn1-ts/dist/node/functional");
const OtherPrimeInfo_ta_1 = require("../PKCS-1/OtherPrimeInfo.ta");
var OtherPrimeInfo_ta_2 = require("../PKCS-1/OtherPrimeInfo.ta");
Object.defineProperty(exports, "OtherPrimeInfo", { enumerable: true, get: function () { return OtherPrimeInfo_ta_2.OtherPrimeInfo; } });
Object.defineProperty(exports, "_decode_OtherPrimeInfo", { enumerable: true, get: function () { return OtherPrimeInfo_ta_2._decode_OtherPrimeInfo; } });
Object.defineProperty(exports, "_encode_OtherPrimeInfo", { enumerable: true, get: function () { return OtherPrimeInfo_ta_2._encode_OtherPrimeInfo; } });
/* END_OF_SYMBOL_DEFINITION OtherPrimeInfos */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_OtherPrimeInfos */
let _cached_decoder_for_OtherPrimeInfos = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_OtherPrimeInfos */
/* START_OF_SYMBOL_DEFINITION _decode_OtherPrimeInfos */
/**
* @summary Decodes an ASN.1 element into a(n) OtherPrimeInfos
* @function
* @param {_Element} el The element being decoded.
* @returns {OtherPrimeInfos} The decoded data structure.
*/
function _decode_OtherPrimeInfos(el) {
if (!_cached_decoder_for_OtherPrimeInfos) {
_cached_decoder_for_OtherPrimeInfos = $._decodeSequenceOf(() => OtherPrimeInfo_ta_1._decode_OtherPrimeInfo);
}
return _cached_decoder_for_OtherPrimeInfos(el);
}
exports._decode_OtherPrimeInfos = _decode_OtherPrimeInfos;
/* END_OF_SYMBOL_DEFINITION _decode_OtherPrimeInfos */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_OtherPrimeInfos */
let _cached_encoder_for_OtherPrimeInfos = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_OtherPrimeInfos */
/* START_OF_SYMBOL_DEFINITION _encode_OtherPrimeInfos */
/**
* @summary Encodes a(n) OtherPrimeInfos 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 OtherPrimeInfos, encoded as an ASN.1 Element.
*/
function _encode_OtherPrimeInfos(value, elGetter) {
if (!_cached_encoder_for_OtherPrimeInfos) {
_cached_encoder_for_OtherPrimeInfos = $._encodeSequenceOf(() => OtherPrimeInfo_ta_1._encode_OtherPrimeInfo, $.BER);
}
return _cached_encoder_for_OtherPrimeInfos(value, elGetter);
}
exports._encode_OtherPrimeInfos = _encode_OtherPrimeInfos;
/* END_OF_SYMBOL_DEFINITION _encode_OtherPrimeInfos */
/* eslint-enable */
//# sourceMappingURL=OtherPrimeInfos.ta.js.map