mbed TLS v2.6.0
base64.h
Go to the documentation of this file.
1 
25 #ifndef MBEDTLS_BASE64_H
26 #define MBEDTLS_BASE64_H
27 
28 #include <stddef.h>
29 
30 #define MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL -0x002A
31 #define MBEDTLS_ERR_BASE64_INVALID_CHARACTER -0x002C
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
56 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen,
57  const unsigned char *src, size_t slen );
58 
76 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
77  const unsigned char *src, size_t slen );
78 
84 int mbedtls_base64_self_test( int verbose );
85 
86 #ifdef __cplusplus
87 }
88 #endif
89 
90 #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.