Mbed OS Reference
|
Macros | |
#define | MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL -0x002A |
Output buffer too small. More... | |
#define | MBEDTLS_ERR_BASE64_INVALID_CHARACTER -0x002C |
Invalid character in input. More... | |
Functions | |
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. More... | |
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. More... | |
#define MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL -0x002A |
#define MBEDTLS_ERR_BASE64_INVALID_CHARACTER -0x002C |
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.
dst | destination buffer |
dlen | size of the destination buffer |
olen | number of bytes written |
src | source buffer |
slen | amount of data to be encoded |
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.
dst | destination buffer (can be NULL for checking size) |
dlen | size of the destination buffer |
olen | number of bytes written |
src | source buffer |
slen | amount of data to be decoded |