@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
44 lines • 1.9 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_EncryptedData = exports._decode_EncryptedData = void 0;
const $ = require("asn1-ts/dist/node/functional");
/* END_OF_SYMBOL_DEFINITION EncryptedData */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_EncryptedData */
let _cached_decoder_for_EncryptedData = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_EncryptedData */
/* START_OF_SYMBOL_DEFINITION _decode_EncryptedData */
/**
* @summary Decodes an ASN.1 element into a(n) EncryptedData
* @function
* @param {_Element} el The element being decoded.
* @returns {EncryptedData} The decoded data structure.
*/
function _decode_EncryptedData(el) {
if (!_cached_decoder_for_EncryptedData) {
_cached_decoder_for_EncryptedData = $._decodeOctetString;
}
return _cached_decoder_for_EncryptedData(el);
}
exports._decode_EncryptedData = _decode_EncryptedData;
/* END_OF_SYMBOL_DEFINITION _decode_EncryptedData */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_EncryptedData */
let _cached_encoder_for_EncryptedData = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_EncryptedData */
/* START_OF_SYMBOL_DEFINITION _encode_EncryptedData */
/**
* @summary Encodes a(n) EncryptedData 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 EncryptedData, encoded as an ASN.1 Element.
*/
function _encode_EncryptedData(value, elGetter) {
if (!_cached_encoder_for_EncryptedData) {
_cached_encoder_for_EncryptedData = $._encodeOctetString;
}
return _cached_encoder_for_EncryptedData(value, elGetter);
}
exports._encode_EncryptedData = _encode_EncryptedData;
/* END_OF_SYMBOL_DEFINITION _encode_EncryptedData */
/* eslint-enable */
//# sourceMappingURL=EncryptedData.ta.js.map