00001
00023 #ifndef POLARSSL_BASE64_H
00024 #define POLARSSL_BASE64_H
00025
00026 #define POLARSSL_ERR_BASE64_BUFFER_TOO_SMALL 0x0010
00027 #define POLARSSL_ERR_BASE64_INVALID_CHARACTER 0x0012
00028
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032
00048 int base64_encode( unsigned char *dst, int *dlen,
00049 unsigned char *src, int slen );
00050
00067 int base64_decode( unsigned char *dst, int *dlen,
00068 unsigned char *src, int slen );
00069
00075 int base64_self_test( int verbose );
00076
00077 #ifdef __cplusplus
00078 }
00079 #endif
00080
00081 #endif