Home
last modified time | relevance | path

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

/base/security/device_security_level/baselib/utils/src/
Dutils_base64.c57 static int32_t Base64Encode(const uint8_t *from, uint32_t fromLen, uint8_t *to, uint32_t toCheckLen) in Base64Encode() argument
59 bool isInvalidParam = ((from == NULL) || (to == NULL) || (fromLen == 0)); in Base64Encode()
64 uint32_t tmpLen = fromLen; in Base64Encode()
77 for (uint32_t i = 0; i < fromLen;) { in Base64Encode()
78 uint32_t a = (i < fromLen) ? (uint8_t)from[i] : 0; in Base64Encode()
80 uint32_t b = (i < fromLen) ? (uint8_t)from[i] : 0; in Base64Encode()
82 uint32_t c = (i < fromLen) ? (uint8_t)from[i] : 0; in Base64Encode()
112 uint32_t fromLen = strlen((char *)from); in Base64Decode() local
114 bool isInvalidLength = ((fromLen < 4) || ((fromLen % 4) != 0)); in Base64Decode()
119 uint32_t toLen = fromLen / 4 * 3; /* Base64 decode size */ in Base64Decode()
[all …]
/base/security/device_security_level/baselib/utils/include/
Dutils_base64.h29 uint8_t *Base64EncodeApp(const uint8_t *from, uint32_t fromLen);