PolarSSL v1.1.4
|
00001 00027 #ifndef POLARSSL_BASE64_H 00028 #define POLARSSL_BASE64_H 00029 00030 #include <string.h> 00031 00032 #define POLARSSL_ERR_BASE64_BUFFER_TOO_SMALL -0x002A 00033 #define POLARSSL_ERR_BASE64_INVALID_CHARACTER -0x002C 00035 #ifdef __cplusplus 00036 extern "C" { 00037 #endif 00038 00054 int base64_encode( unsigned char *dst, size_t *dlen, 00055 const unsigned char *src, size_t slen ); 00056 00073 int base64_decode( unsigned char *dst, size_t *dlen, 00074 const unsigned char *src, size_t slen ); 00075 00081 int base64_self_test( int verbose ); 00082 00083 #ifdef __cplusplus 00084 } 00085 #endif 00086 00087 #endif /* base64.h */