mbed TLS v2.0.0
base64.h
Go to the documentation of this file.
1 
24 #ifndef MBEDTLS_BASE64_H
25 #define MBEDTLS_BASE64_H
26 
27 #include <stddef.h>
28 
29 #define MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL -0x002A
30 #define MBEDTLS_ERR_BASE64_INVALID_CHARACTER -0x002C
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
52 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen,
53  const unsigned char *src, size_t slen );
54 
72 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
73  const unsigned char *src, size_t slen );
74 
80 int mbedtls_base64_self_test( int verbose );
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 #endif /* base64.h */
int mbedtls_base64_encode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen)
Encode a buffer into base64 format.
int mbedtls_base64_decode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen)
Decode a base64-formatted buffer.
int mbedtls_base64_self_test(int verbose)
Checkup routine.