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