Home
last modified time | relevance | path

Searched refs:inputLength (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/linkkit/dev_model/alcs/
A Dalcs_base64.c41 int utils_base64encode(const uint8_t *data, uint32_t inputLength, in utils_base64encode() argument
52 *outputLength = 4 * ((inputLength + 2) / 3); in utils_base64encode()
58 for (i = 0, j = 0; i < inputLength;) { in utils_base64encode()
59 uint32_t octet_a = i < inputLength ? (uint8_t)data[i++] : 0; in utils_base64encode()
71 for (i = 0; i < g_modTable[inputLength % 3]; i++) { in utils_base64encode()
78 int utils_base64decode(const uint8_t *data, uint32_t inputLength, in utils_base64decode() argument
92 if (inputLength % 4 != 0) { in utils_base64decode()
96 *outputLength = inputLength / 4 * 3; in utils_base64decode()
98 if (data[inputLength - 1] == '=') { in utils_base64decode()
102 if (data[inputLength - 2] == '=') { in utils_base64decode()
[all …]
A Dalcs_base64.h6 int utils_base64encode(const uint8_t *data, uint32_t inputLength,
9 int utils_base64decode(const uint8_t *data, uint32_t inputLength,

Completed in 3 milliseconds