@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
44 lines • 2.72 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_ContentEncryptionAlgorithmIdentifier = exports._decode_ContentEncryptionAlgorithmIdentifier = void 0;
const AlgorithmIdentifier_ta_1 = require("@wildboar/x500/src/lib/modules/AuthenticationFramework/AlgorithmIdentifier.ta");
/* END_OF_SYMBOL_DEFINITION ContentEncryptionAlgorithmIdentifier */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_ContentEncryptionAlgorithmIdentifier */
let _cached_decoder_for_ContentEncryptionAlgorithmIdentifier = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_ContentEncryptionAlgorithmIdentifier */
/* START_OF_SYMBOL_DEFINITION _decode_ContentEncryptionAlgorithmIdentifier */
/**
* @summary Decodes an ASN.1 element into a(n) ContentEncryptionAlgorithmIdentifier
* @function
* @param {_Element} el The element being decoded.
* @returns {ContentEncryptionAlgorithmIdentifier} The decoded data structure.
*/
function _decode_ContentEncryptionAlgorithmIdentifier(el) {
if (!_cached_decoder_for_ContentEncryptionAlgorithmIdentifier) {
_cached_decoder_for_ContentEncryptionAlgorithmIdentifier = AlgorithmIdentifier_ta_1._decode_AlgorithmIdentifier;
}
return _cached_decoder_for_ContentEncryptionAlgorithmIdentifier(el);
}
exports._decode_ContentEncryptionAlgorithmIdentifier = _decode_ContentEncryptionAlgorithmIdentifier;
/* END_OF_SYMBOL_DEFINITION _decode_ContentEncryptionAlgorithmIdentifier */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_ContentEncryptionAlgorithmIdentifier */
let _cached_encoder_for_ContentEncryptionAlgorithmIdentifier = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_ContentEncryptionAlgorithmIdentifier */
/* START_OF_SYMBOL_DEFINITION _encode_ContentEncryptionAlgorithmIdentifier */
/**
* @summary Encodes a(n) ContentEncryptionAlgorithmIdentifier 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 ContentEncryptionAlgorithmIdentifier, encoded as an ASN.1 Element.
*/
function _encode_ContentEncryptionAlgorithmIdentifier(value, elGetter) {
if (!_cached_encoder_for_ContentEncryptionAlgorithmIdentifier) {
_cached_encoder_for_ContentEncryptionAlgorithmIdentifier = AlgorithmIdentifier_ta_1._encode_AlgorithmIdentifier;
}
return _cached_encoder_for_ContentEncryptionAlgorithmIdentifier(value, elGetter);
}
exports._encode_ContentEncryptionAlgorithmIdentifier = _encode_ContentEncryptionAlgorithmIdentifier;
/* END_OF_SYMBOL_DEFINITION _encode_ContentEncryptionAlgorithmIdentifier */
/* eslint-enable */
//# sourceMappingURL=ContentEncryptionAlgorithmIdentifier.ta.js.map