Searched refs:decodedLen (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/base/security/device_security_level/baselib/utils/src/ |
H A D | utils_base64.c | 196 uint32_t decodedLen = strlen((char *)src) / 4 * 3; /* Base64 Decode size */ in Base64DecodeApp() local 197 if (decodedLen + 1 > MAX_MALLOC_LEN) { in Base64DecodeApp() 202 uint8_t *decoded = (uint8_t *)MALLOC(decodedLen + 1); in Base64DecodeApp() 208 int realLen = Base64Decode(src, decoded, decodedLen); in Base64DecodeApp()
|
/ohos5.0/base/tee/tee_client/services/authentication/ |
H A D | tee_auth_system.cpp | 31 static int32_t Base64Decode(string& encodedStr, unsigned char *decodedStr, uint32_t *decodedLen) in Base64Decode() argument 38 if (*decodedLen < ((encodedLen / BASE_NUM_FOUR) * BASE_NUM_THREE)) { in Base64Decode() 39 tloge("decode string len too short, %zu, %u\n", encodedLen, (unsigned int)*decodedLen); in Base64Decode() 68 *decodedLen = ret - padLen; in Base64Decode()
|
/ohos5.0/foundation/communication/wifi/wifi/utils/src/ |
H A D | wifi_common_util.cpp | 551 uint32_t decodedLen = input.length() * BASE64_SRC_UNIT_SIZE / BASE64_DEST_UNIT_SIZE; in DecodeBase64() local 553 decodedLen--; in DecodeBase64() 555 decodedLen--; in DecodeBase64() 558 output.resize(decodedLen); in DecodeBase64() 564 if (BIO_read(bio, &output[0], input.length()) != static_cast<int32_t>(decodedLen)) { in DecodeBase64()
|