RetroArch
|
#include "mbedtls/config.h"
#include "mbedtls/base64.h"
#include <stdint.h>
#include <string.h>
#include "mbedtls/platform.h"
Macros | |
#define | BASE64_SIZE_T_MAX ( (size_t) -1 ) /* SIZE_T_MAX is not standard */ |
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... | |
int | mbedtls_base64_self_test (int verbose) |
Checkup routine. More... | |
Variables | |
static const unsigned char | base64_enc_map [64] |
static const unsigned char | base64_dec_map [128] |
static const unsigned char | base64_test_dec [64] |
static const unsigned char | base64_test_enc [] |
#define BASE64_SIZE_T_MAX ( (size_t) -1 ) /* SIZE_T_MAX is not standard */ |
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 |
int mbedtls_base64_self_test | ( | int | verbose | ) |
Checkup routine.
|
static |
|
static |
|
static |
|
static |