#include <glib.h>
Go to the source code of this file.
Functions | |
gchar * | base32_encode (const gchar *buf, gint len, gint *retpad, gboolean padding) |
Encode `len' bytes starting at `buf' into new allocated buffer. | |
void | base32_encode_into (const gchar *buf, gint len, gchar *encbuf, gint enclen) |
Encode `len' bytes from `buf' into `enclen' bytes starting from `encbuf'. | |
void | base32_encode_str_into (const gchar *buf, gint len, gchar *encbuf, gint enclen, gboolean padding) |
Encode `len' bytes from `buf' into `enclen' bytes starting from `encbuf'. | |
gchar * | base32_decode (const gchar *buf, gint len, gint *outbuf) |
Decode `len' bytes starting at `buf' into new allocated buffer. | |
gint | base32_decode_into (const gchar *buf, gint len, gchar *decbuf, gint declen) |
Decode `len' bytes from `buf' into `declen' bytes starting from `decbuf', faking the necessary amount of padding if necessary. | |
gint | base32_decode_old_into (const gchar *buf, gint len, gchar *decbuf, gint declen) |
Decode `len' bytes from `buf' into `declen' bytes starting from `decbuf'. |
|
Decode `len' bytes starting at `buf' into new allocated buffer.
|
|
Decode `len' bytes from `buf' into `declen' bytes starting from `decbuf', faking the necessary amount of padding if necessary. Caller must have ensured that there was sufficient room in decbuf.
|
|
Decode `len' bytes from `buf' into `declen' bytes starting from `decbuf'. faking the necessary amount of padding if necessary. Caller must have ensured that there was sufficient room in decbuf. The "old" base32 alphabet is used for decoding.
|
|
Encode `len' bytes starting at `buf' into new allocated buffer. Trailing padding chars are emitted when `padding' is TRUE.
|
|
Encode `len' bytes from `buf' into `enclen' bytes starting from `encbuf'. Trailing padding chars are emitted. Caller must have ensured that there was enough room in encbuf.
|
|
Encode `len' bytes from `buf' into `enclen' bytes starting from `encbuf'. Trailing padding chars are emitted when `padding' is TRUE. A trailing NUL is emitted at the end of the encoded buffer. Caller must have ensured that there was enough room in encbuf. |