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