#include "beecrypt/beecrypt.h"
Go to the source code of this file.
Defines | |
#define | B64DECODE_WHITESPACE " \f\n\r\t\v" |
#define | B64ENCODE_CHARS_PER_LINE 72 |
#define | B64ENCODE_EOLSTR "\n" |
Functions | |
BEECRYPTAPI char * | b64encode (const void *data, size_t ns) |
BEECRYPTAPI char * | b64crc (const unsigned char *data, size_t ns) |
BEECRYPTAPI int | b64decode (const char *s, void **datap, size_t *lenp) |
BEECRYPTAPI char * | b64enc (const memchunk *) |
BEECRYPTAPI memchunk * | b64dec (const char *) |
Variables | |
const char * | b64decode_whitespace |
int | b64encode_chars_per_line |
const char * | b64encode_eolstr |
#define B64DECODE_WHITESPACE " \f\n\r\t\v" |
#define B64ENCODE_CHARS_PER_LINE 72 |
#define B64ENCODE_EOLSTR "\n" |
BEECRYPTAPI char* b64crc | ( | const unsigned char * | data, | |
size_t | ns | |||
) |
Encode crc of binary input data into 5 bytes of base64 output.
data | binary data | |
ns | no. bytes of binary data |
BEECRYPTAPI memchunk* b64dec | ( | const char * | ) |
BEECRYPTAPI int b64decode | ( | const char * | s, | |
void ** | datap, | |||
size_t * | lenp | |||
) |
Decode chunks of 4 bytes of base64 input into 3 bytes of binary output.
s | base64 string |
datap | address of (malloc'd) binary data | |
lenp | address of no. bytes of binary data |
BEECRYPTAPI char* b64enc | ( | const memchunk * | ) |
BEECRYPTAPI char* b64encode | ( | const void * | data, | |
size_t | ns | |||
) |
Encode chunks of 3 bytes of binary input into 4 bytes of base64 output.
data | binary data | |
ns | no. bytes of data (0 uses strlen(data)) |
const char* b64decode_whitespace |
\ Decode white space character set (default).
\ Encode 72 characters per line (default).
const char* b64encode_eolstr |
\ Encode end-of-line string (default).