UNPKG

@wildboar/pkcs

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