@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
44 lines • 1.77 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_KeyBag = exports._decode_KeyBag = void 0;
const PrivateKeyInfo_ta_1 = require("../AsymmetricKeyPackageModuleV1/PrivateKeyInfo.ta");
/* END_OF_SYMBOL_DEFINITION KeyBag */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_KeyBag */
let _cached_decoder_for_KeyBag = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_KeyBag */
/* START_OF_SYMBOL_DEFINITION _decode_KeyBag */
/**
* @summary Decodes an ASN.1 element into a(n) KeyBag
* @function
* @param {_Element} el The element being decoded.
* @returns {KeyBag} The decoded data structure.
*/
function _decode_KeyBag(el) {
if (!_cached_decoder_for_KeyBag) {
_cached_decoder_for_KeyBag = PrivateKeyInfo_ta_1._decode_PrivateKeyInfo;
}
return _cached_decoder_for_KeyBag(el);
}
exports._decode_KeyBag = _decode_KeyBag;
/* END_OF_SYMBOL_DEFINITION _decode_KeyBag */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_KeyBag */
let _cached_encoder_for_KeyBag = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_KeyBag */
/* START_OF_SYMBOL_DEFINITION _encode_KeyBag */
/**
* @summary Encodes a(n) KeyBag 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 KeyBag, encoded as an ASN.1 Element.
*/
function _encode_KeyBag(value, elGetter) {
if (!_cached_encoder_for_KeyBag) {
_cached_encoder_for_KeyBag = PrivateKeyInfo_ta_1._encode_PrivateKeyInfo;
}
return _cached_encoder_for_KeyBag(value, elGetter);
}
exports._encode_KeyBag = _encode_KeyBag;
/* END_OF_SYMBOL_DEFINITION _encode_KeyBag */
/* eslint-enable */
//# sourceMappingURL=KeyBag.ta.js.map