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