dcerpc-nt: add UNION_ALIGN_TO... helpers
[wireshark-sm.git] / wsutil / base32.h
blobec1b244ed14ee2d127a6f86ad2320b7954b9123e
1 /** @file
2 * Base-32 conversion
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10 #ifndef __BASE32_H__
11 #define __BASE32_H__
13 #include <wireshark.h>
15 #ifdef __cplusplus
16 extern "C" {
17 #endif /* __cplusplus */
19 /** Returned by base32_decode() if the input is not valid base32. */
20 #define Base32_BAD_INPUT -1
21 /** Returned by base32_decode() if the output buffer is too small. */
22 #define Base32_TOO_BIG -2
24 /* Encoding of a base32 byte array */
25 WS_DLL_PUBLIC
26 int ws_base32_decode(uint8_t* output, const uint32_t outputLength,
27 const uint8_t* in, const uint32_t inputLength);
29 #ifdef __cplusplus
31 #endif /* __cplusplus */
33 #endif /* __BASE32_H__ */
36 * Editor modelines - https://www.wireshark.org/tools/modelines.html
38 * Local variables:
39 * c-basic-offset: 4
40 * tab-width: 8
41 * indent-tabs-mode: nil
42 * End:
44 * vi: set shiftwidth=4 tabstop=8 expandtab:
45 * :indentSize=4:tabSize=8:noTabs=true: