UNPKG

@wildboar/pkcs

Version:
44 lines 2.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_KeyEncryptionAlgorithmIdentifier = exports._decode_KeyEncryptionAlgorithmIdentifier = void 0; const AlgorithmIdentifier_ta_1 = require("@wildboar/x500/src/lib/modules/AuthenticationFramework/AlgorithmIdentifier.ta"); /* END_OF_SYMBOL_DEFINITION KeyEncryptionAlgorithmIdentifier */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_KeyEncryptionAlgorithmIdentifier */ let _cached_decoder_for_KeyEncryptionAlgorithmIdentifier = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_KeyEncryptionAlgorithmIdentifier */ /* START_OF_SYMBOL_DEFINITION _decode_KeyEncryptionAlgorithmIdentifier */ /** * @summary Decodes an ASN.1 element into a(n) KeyEncryptionAlgorithmIdentifier * @function * @param {_Element} el The element being decoded. * @returns {KeyEncryptionAlgorithmIdentifier} The decoded data structure. */ function _decode_KeyEncryptionAlgorithmIdentifier(el) { if (!_cached_decoder_for_KeyEncryptionAlgorithmIdentifier) { _cached_decoder_for_KeyEncryptionAlgorithmIdentifier = AlgorithmIdentifier_ta_1._decode_AlgorithmIdentifier; } return _cached_decoder_for_KeyEncryptionAlgorithmIdentifier(el); } exports._decode_KeyEncryptionAlgorithmIdentifier = _decode_KeyEncryptionAlgorithmIdentifier; /* END_OF_SYMBOL_DEFINITION _decode_KeyEncryptionAlgorithmIdentifier */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_KeyEncryptionAlgorithmIdentifier */ let _cached_encoder_for_KeyEncryptionAlgorithmIdentifier = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_KeyEncryptionAlgorithmIdentifier */ /* START_OF_SYMBOL_DEFINITION _encode_KeyEncryptionAlgorithmIdentifier */ /** * @summary Encodes a(n) KeyEncryptionAlgorithmIdentifier 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 KeyEncryptionAlgorithmIdentifier, encoded as an ASN.1 Element. */ function _encode_KeyEncryptionAlgorithmIdentifier(value, elGetter) { if (!_cached_encoder_for_KeyEncryptionAlgorithmIdentifier) { _cached_encoder_for_KeyEncryptionAlgorithmIdentifier = AlgorithmIdentifier_ta_1._encode_AlgorithmIdentifier; } return _cached_encoder_for_KeyEncryptionAlgorithmIdentifier(value, elGetter); } exports._encode_KeyEncryptionAlgorithmIdentifier = _encode_KeyEncryptionAlgorithmIdentifier; /* END_OF_SYMBOL_DEFINITION _encode_KeyEncryptionAlgorithmIdentifier */ /* eslint-enable */ //# sourceMappingURL=KeyEncryptionAlgorithmIdentifier.ta.js.map