49#ifndef MBEDTLS_BASE64_H
50#define MBEDTLS_BASE64_H
52#if !defined(MBEDTLS_CONFIG_FILE)
55#include MBEDTLS_CONFIG_FILE
60#define MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL -0x002A
61#define MBEDTLS_ERR_BASE64_INVALID_CHARACTER -0x002C
87 const unsigned char *
src,
size_t slen );
107 const unsigned char *
src,
size_t slen );
109#if defined(MBEDTLS_SELF_TEST)
115int mbedtls_base64_self_test(
int verbose );
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_encode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen)
Encode a buffer into base64 format.