Subversion Repositories canSerial

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 mjames 1
// Base 64 encoding/decoding utilities.
2
#include "stdint.h"
3
extern void build_decoding_table(char *workspace);
4
 
5
// encode a block into the output buffer
6
extern char *base64_encode(const unsigned char *data,
7
                           size_t input_length,
8
                           char *encoded_data,
9
                           size_t *output_length);
10
 
11
// decode a block from the output buffer.
12
unsigned char *base64_decode(const char *data,
13
                             size_t input_length,
14
                             char *decoded_data,
15
                             size_t *output_length);