22 #ifndef MBEDTLS_BASE64_H
23 #define MBEDTLS_BASE64_H
30 #define MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL -0x002A
32 #define MBEDTLS_ERR_BASE64_INVALID_CHARACTER -0x002C
58 const unsigned char *src,
size_t slen );
78 const unsigned char *src,
size_t slen );
80 #if defined(MBEDTLS_SELF_TEST)
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.
Build-time configuration info.