UNPKG

@wildboar/pkcs

Version:
44 lines 2.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_MessageAuthenticationCode = exports._decode_MessageAuthenticationCode = void 0; const $ = require("asn1-ts/dist/node/functional"); /* END_OF_SYMBOL_DEFINITION MessageAuthenticationCode */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_MessageAuthenticationCode */ let _cached_decoder_for_MessageAuthenticationCode = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_MessageAuthenticationCode */ /* START_OF_SYMBOL_DEFINITION _decode_MessageAuthenticationCode */ /** * @summary Decodes an ASN.1 element into a(n) MessageAuthenticationCode * @function * @param {_Element} el The element being decoded. * @returns {MessageAuthenticationCode} The decoded data structure. */ function _decode_MessageAuthenticationCode(el) { if (!_cached_decoder_for_MessageAuthenticationCode) { _cached_decoder_for_MessageAuthenticationCode = $._decodeOctetString; } return _cached_decoder_for_MessageAuthenticationCode(el); } exports._decode_MessageAuthenticationCode = _decode_MessageAuthenticationCode; /* END_OF_SYMBOL_DEFINITION _decode_MessageAuthenticationCode */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_MessageAuthenticationCode */ let _cached_encoder_for_MessageAuthenticationCode = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_MessageAuthenticationCode */ /* START_OF_SYMBOL_DEFINITION _encode_MessageAuthenticationCode */ /** * @summary Encodes a(n) MessageAuthenticationCode 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 MessageAuthenticationCode, encoded as an ASN.1 Element. */ function _encode_MessageAuthenticationCode(value, elGetter) { if (!_cached_encoder_for_MessageAuthenticationCode) { _cached_encoder_for_MessageAuthenticationCode = $._encodeOctetString; } return _cached_encoder_for_MessageAuthenticationCode(value, elGetter); } exports._encode_MessageAuthenticationCode = _encode_MessageAuthenticationCode; /* END_OF_SYMBOL_DEFINITION _encode_MessageAuthenticationCode */ /* eslint-enable */ //# sourceMappingURL=MessageAuthenticationCode.ta.js.map