bglibs
base64.h
1 #ifndef BASE64__H__
2 #define BASE64__H__
3 
4 #include "str.h"
5 
6 #define BASE64_PAD '='
7 
8 extern const char base64_bin2asc[64];
9 extern void base64_encode_whole(const unsigned char bin[3], char encoded[4]);
10 extern void base64_encode_part(const unsigned char bin[3], unsigned len,
11  char encoded[4]);
12 extern int base64_encode_line(const unsigned char* bin, unsigned long len,
13  str* encoded);
14 
15 extern const signed char base64_asc2bin[256];
16 extern int base64_decode_part(const char encoded[4],
17  unsigned char bin[3]);
18 extern int base64_decode_line(const char* encoded, str* bin);
19 
20 #endif
str::s
char * s
Definition: str.h:36
adt_hash_t
unsigned long adt_hash_t
Definition: adt_common.h:10
adt_cmpsp
int adt_cmpsp(const char *const *a, const char *const *b)
Definition: adt_sp.c:6
adt_hashsp
adt_hash_t adt_hashsp(const char *const *p)
Definition: adt_sp.c:16
adt_hashs
adt_hash_t adt_hashs(const unsigned char *data)
Definition: hashs.c:6
adt_freesp
void adt_freesp(const char **a)
Definition: adt_sp.c:21
STR_BLOCKSIZE
#define STR_BLOCKSIZE
Definition: str.h:25
str::size
unsigned size
Definition: str.h:42
str
Definition: str.h:31
adt_copysp
int adt_copysp(const char **a, const char *const *b)
Definition: adt_sp.c:11
str_alloc
int str_alloc(str *s, unsigned size, int copy)
Definition: alloc.c:32