WSUG: Fixup some quotes and apostrophes.
[metze/wireshark/wip.git] / wsutil / base32.h
1 /* base32.h
2  * Base-32 conversion
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10 #ifndef __BASE32_H__
11 #define __BASE32_H__
12
13 #include "ws_symbol_export.h"
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif /* __cplusplus */
18
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
23
24 /* Encoding of a base32 byte array */
25 WS_DLL_PUBLIC
26 int ws_base32_decode(guint8* output, const guint32 outputLength,
27                                                 const guint8* in, const guint32 inputLength);
28
29 #ifdef __cplusplus
30 }
31 #endif /* __cplusplus */
32
33 #endif /* __BASE32_H__ */
34
35 /*
36  * Editor modelines  -  https://www.wireshark.org/tools/modelines.html
37  *
38  * Local variables:
39  * c-basic-offset: 4
40  * tab-width: 8
41  * indent-tabs-mode: nil
42  * End:
43  *
44  * vi: set shiftwidth=4 tabstop=8 expandtab:
45  * :indentSize=4:tabSize=8:noTabs=true:
46  */