ReactOS 0.4.16-dev-125-g798ea90
|
RFC 1521 base64 encoding/decoding. More...
Go to the source code of this file.
Macros | |
#define | MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL -0x002A |
#define | MBEDTLS_ERR_BASE64_INVALID_CHARACTER -0x002C |
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. | |
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. | |
RFC 1521 base64 encoding/decoding.
Definition in file base64.h.
#define MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL -0x002A |
#define MBEDTLS_ERR_BASE64_INVALID_CHARACTER -0x002C |
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 |
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 |