Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_base64

BASE64. More...

Functions

bool bc_base64_encode (char *output, size_t *output_length, uint8_t *input, size_t input_length)
 BASE64 encode. More...
 
bool bc_base64_decode (uint8_t *output, size_t *output_length, char *input, size_t input_length)
 BASE64 decode. More...
 
size_t bc_base64_calculate_encode_length (size_t length)
 BASE64 Calculate encode length. More...
 
size_t bc_base64_calculate_decode_length (char *input, size_t length)
 BASE64 Calculate decode length. More...
 

Detailed Description

BASE64.

Function Documentation

size_t bc_base64_calculate_decode_length ( char *  input,
size_t  length 
)

BASE64 Calculate decode length.

Parameters
[in]inputPointer to source buffer
[in]lengthNumber of bytes

Definition at line 154 of file bc_base64.c.

size_t bc_base64_calculate_encode_length ( size_t  length)

BASE64 Calculate encode length.

Parameters
[in]lengthNumber of bytes

Definition at line 148 of file bc_base64.c.

bool bc_base64_decode ( uint8_t *  output,
size_t *  output_length,
char *  input,
size_t  input_length 
)

BASE64 decode.

Parameters
[out]outputPointer to destination buffer
[in,out]output_lengthSize of destination buffer, Number of used bytes
[in]inputPointer to source buffer
[in]input_lengthNumber of bytes
Returns
true On success
false On failure

Definition at line 76 of file bc_base64.c.

bool bc_base64_encode ( char *  output,
size_t *  output_length,
uint8_t *  input,
size_t  input_length 
)

BASE64 encode.

Parameters
[out]outputPointer to destination buffer
[in,out]output_lengthSize of destination buffer, Number of used bytes
[in]inputPointer to source buffer
[in]input_lengthNumber of bytes
Returns
true On success
false On failure

Definition at line 7 of file bc_base64.c.