#include "system.h"
#include "base64.h"
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | CHARS_PER_LINE 64 |
#define | CRC24_INIT 0xb704ceL |
#define | CRC24_POLY 0x1864cfbL |
Functions | |
char * | b64enc (const memchunk *chunk) |
memchunk * | b64dec (const char *string) |
char * | b64encode (const void *data, int ns) |
Encode chunks of 3 bytes of binary input into 4 bytes of base64 output. More... | |
char * | b64crc (const unsigned char *data, int ns) |
Encode crc of binary input data into 5 bytes of base64 output. More... | |
int | b64decode (const char *s, void **datap, int *lenp) |
Decode chunks of 4 bytes of base64 input into 3 bytes of binary output. More... | |
Variables | |
int | _debug = 0 |
const char * | to_b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" |
int | b64encode_chars_per_line = 72 |
Encode 72 characters per line (default). More... | |
const char * | b64encode_eolstr = "\n" |
Encode end-of-line string (default). More... | |
const char * | b64decode_whitespace = " \f\n\r\t\v" |
Decode white space character set (default). More... |
Definition in file base64.c.
|
Definition at line 39 of file base64.c. Referenced by b64enc. |
|
Definition at line 334 of file base64.c. Referenced by b64crc. |
|
Definition at line 335 of file base64.c. Referenced by b64crc. |
|
Encode crc of binary input data into 5 bytes of base64 output.
Definition at line 338 of file base64.c. References b64encode, CRC24_INIT, CRC24_POLY, swapu32, and uint32. |
|
Definition at line 106 of file base64.c. References memchunk::data, memchunkAlloc, and to_b64. |
|
Decode chunks of 4 bytes of base64 input into 3 bytes of binary output.
Definition at line 370 of file base64.c. References b64decode_whitespace. |
|
Definition at line 42 of file base64.c. References CHARS_PER_LINE, memchunk::data, memchunk::size, and to_b64. Referenced by b64encode. |
|
Encode chunks of 3 bytes of binary input into 4 bytes of base64 output.
Definition at line 249 of file base64.c. References b64enc, b64encode_chars_per_line, and b64encode_eolstr. |
|
|
|
Decode white space character set (default).
Definition at line 366 of file base64.c. Referenced by b64decode. |
|
Encode 72 characters per line (default).
Definition at line 243 of file base64.c. Referenced by b64encode. |
|
Encode end-of-line string (default).
Definition at line 245 of file base64.c. Referenced by b64encode. |
|
|