Firmware SDK
twr_base64

BASE64. More...

Functions

bool twr_base64_encode (char *output, size_t *output_length, uint8_t *input, size_t input_length)
 BASE64 encode. More...
 
bool twr_base64_decode (uint8_t *output, size_t *output_length, char *input, size_t input_length)
 BASE64 decode. More...
 
size_t twr_base64_calculate_encode_length (size_t length)
 BASE64 Calculate encode length. More...
 
size_t twr_base64_calculate_decode_length (char *input, size_t length)
 BASE64 Calculate decode length. More...
 

Detailed Description

BASE64.

Function Documentation

◆ twr_base64_calculate_decode_length()

size_t twr_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 twr_base64.c.

◆ twr_base64_calculate_encode_length()

size_t twr_base64_calculate_encode_length ( size_t  length)

BASE64 Calculate encode length.

Parameters
[in]lengthNumber of bytes

Definition at line 148 of file twr_base64.c.

◆ twr_base64_decode()

bool twr_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 twr_base64.c.

◆ twr_base64_encode()

bool twr_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 twr_base64.c.