00001 00004 #ifndef XYSSL_BASE64_H 00005 #define XYSSL_BASE64_H 00006 00007 #define XYSSL_ERR_BASE64_BUFFER_TOO_SMALL -0x0010 00008 #define XYSSL_ERR_BASE64_INVALID_CHARACTER -0x0012 00009 00010 #ifdef __cplusplus 00011 extern "C" { 00012 #endif 00013 00029 int base64_encode( unsigned char *dst, int *dlen, 00030 unsigned char *src, int slen ); 00031 00048 int base64_decode( unsigned char *dst, int *dlen, 00049 unsigned char *src, int slen ); 00050 00056 int base64_self_test( int verbose ); 00057 00058 #ifdef __cplusplus 00059 } 00060 #endif 00061 00062 #endif /* base64.h */