Definition in file b64.c.
Go to the source code of this file.
Defines | |
#define | _GNU_SOURCE |
I used the sources available from this location: http://base64.sourceforge.net/b64.c The author is: Bob Trower (08/04/01). | |
Functions | |
static void | encodeblock (uint8_t in[3], uint8_t out[4], int len) |
Utility function for Content-Transfer-Encoding standard described in RFC1113. | |
void | mihl_base64_encode (char const *bin, size_t size, char *bout, size_t maxlen) |
Base64 encode function. | |
static void | decodeblock (uint8_t in[4], uint8_t out[3]) |
Utility function for Content-Transfer-Encoding standard described in RFC1113 decode 4 '6-bit' characters into 3 8-bit binary bytes. | |
void | mihl_base64_decode (char const *bin, size_t size, char *bout, size_t maxlen) |
Base64 decode function. |
#define _GNU_SOURCE |
I used the sources available from this location: http://base64.sourceforge.net/b64.c The author is: Bob Trower (08/04/01).
static void encodeblock | ( | uint8_t | in[3], | |
uint8_t | out[4], | |||
int | len | |||
) | [static] |
Utility function for Content-Transfer-Encoding standard described in RFC1113.
[in] | in | input buffer |
[out] | out | output buffer |
length | of the block |
Definition at line 50 of file b64.c.
Referenced by mihl_base64_encode().
void mihl_base64_encode | ( | char const * | bin, | |
size_t | size, | |||
char * | bout, | |||
size_t | maxlen | |||
) |
Base64 encode function.
[in] | bin | Input buffer: string to encode |
size | Number of bytes in the input string | |
[out] | Buffer | to store the Base64 encoded output string |
maxlen | Max length for the encoded output string |
Definition at line 67 of file b64.c.
References encodeblock().
static void decodeblock | ( | uint8_t | in[4], | |
uint8_t | out[3] | |||
) | [static] |
Utility function for Content-Transfer-Encoding standard described in RFC1113 decode 4 '6-bit' characters into 3 8-bit binary bytes.
[in] | in | input buffer |
[out] | out | output buffer |
length | of the block |
Definition at line 98 of file b64.c.
Referenced by mihl_base64_decode().
void mihl_base64_decode | ( | char const * | bin, | |
size_t | size, | |||
char * | bout, | |||
size_t | maxlen | |||
) |
Base64 decode function.
[in] | bin | Base64 encoded input string |
size | Number of bytes in the encoded input string | |
[out] | Buffer | to store the decoded output string |
maxlen | Max length for the decoded output string |
Definition at line 112 of file b64.c.
References decodeblock().