Home
last modified time | relevance | path

Searched refs:tempBuf (Results 1 – 11 of 11) sorted by relevance

/base/security/certificate_manager/test/unittest/module_test/src/
Dcm_param_test.cpp188 uint8_t tempBuf[] = "this is for test"; variable
189 struct CmBlob tempBlob = { UINT32_MAX, tempBuf };
396 uint8_t tempBuf[] = "this is for test020"; variable
401 paramSet->params[0].blob.data = tempBuf;
424 uint8_t tempBuf[] = "this is for test021"; variable
426 paramSet->paramSetSize += sizeof(struct CmParam) + sizeof(tempBuf);
428 paramSet->params[0].blob.size = sizeof(tempBuf);
452 uint8_t tempBuf[] = "this is for test022"; variable
454 paramSet->paramSetSize += sizeof(struct CmParam) + sizeof(tempBuf) + 1; /* invalid size */
456 paramSet->params[0].blob.size = sizeof(tempBuf);
[all …]
Dcm_cert_parse_test.cpp503 uint8_t tempBuf[] = "this is for test error"; variable
504 struct CmBlob certInfo = { sizeof(tempBuf), tempBuf };
/base/powermgr/thermal_manager/services/native/test/unittest/src/
Dthermal_listener_test.cpp58 char tempBuf[MAX_PATH] = {0}; in SetSensorTemp() local
59 int32_t ret = snprintf_s(tempBuf, MAX_PATH, sizeof(tempBuf) - 1, path.c_str()); in SetSensorTemp()
63 ret = ThermalListenerTest::WriteFile(tempBuf, sTemp, sTemp.length()); in SetSensorTemp()
Dthermal_mgr_policy_test.cpp150 char tempBuf[MAX_PATH] = {0}; in SetSensorTemp() local
151 int32_t ret = snprintf_s(tempBuf, MAX_PATH, sizeof(tempBuf) - 1, path.c_str()); in SetSensorTemp()
155 ret = ThermalMgrPolicyTest::WriteFile(tempBuf, sTemp, sTemp.length()); in SetSensorTemp()
/base/security/huks/frameworks/crypto_lite/cipher/src/
Dcipher_rsa.c227 char *tempBuf = malloc(cipherTotalLen); in RsaEncryptBase64Encode() local
228 if (tempBuf == NULL) { in RsaEncryptBase64Encode()
233 int32_t ret = memcpy_s(tempBuf, cipherTotalLen, cipherText, cipherTotalLen); in RsaEncryptBase64Encode()
236 free(tempBuf); in RsaEncryptBase64Encode()
242 ret = mbedtls_base64_encode(NULL, 0, &dataLen, (const unsigned char *)tempBuf, cipherTotalLen); in RsaEncryptBase64Encode()
245 free(tempBuf); in RsaEncryptBase64Encode()
250 (const unsigned char *)tempBuf, cipherTotalLen); in RsaEncryptBase64Encode()
253 free(tempBuf); in RsaEncryptBase64Encode()
256 free(tempBuf); in RsaEncryptBase64Encode()
/base/powermgr/thermal_manager/application/protector/src/
Dthermal_sensor_provision.cpp218 char tempBuf[MAX_BUFF_SIZE] = {0}; in ReportThermalZoneData() local
239 …t32_t ret = ReadThermalSysfsToBuff(sensorIter.second->GetPath().c_str(), tempBuf, sizeof(tempBuf)); in ReportThermalZoneData()
243 int32_t temp = std::stoi(tempBuf); in ReportThermalZoneData()
/base/security/certificate_manager/interfaces/kits/napi/src/
Dcm_napi_sign_verify.cpp436 uint8_t *tempBuf = static_cast<uint8_t *>(CmMalloc(size)); in GenerateArrayBuffer() local
437 if (tempBuf == nullptr) { in GenerateArrayBuffer()
441 (void)memcpy_s(tempBuf, size, data, size); in GenerateArrayBuffer()
445 …env, tempBuf, size, [](napi_env env, void *data, void *hint) { CmFree(data); }, nullptr, &outBuffe… in GenerateArrayBuffer()
447 tempBuf = nullptr; /* free by finalize callback */ in GenerateArrayBuffer()
450 CM_FREE_PTR(tempBuf); in GenerateArrayBuffer()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_status.c526 uint8_t tempBuf[MAX_NAME_DIGEST_LEN] = {0}; in GetRbTreeKey() local
527 struct CmBlob nameDigest = { sizeof(tempBuf), tempBuf }; in GetRbTreeKey()
/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_header.cpp1135 MmsEncodeBuffer tempBuf; in EncodeFieldExpriyValue() local
1136 if (!tempBuf.EncodeOctet(relativeToken)) { in EncodeFieldExpriyValue()
1140 if (!tempBuf.EncodeLongInteger(value)) { in EncodeFieldExpriyValue()
1144 if (!buff.EncodeValueLength(tempBuf.GetCurPosition())) { in EncodeFieldExpriyValue()
1148 if (!buff.WriteBuffer(tempBuf)) { in EncodeFieldExpriyValue()
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_import_sign_verify_test.cpp834 uint8_t tempBuf[LENGTH_TO_BE_OPERATED] = {0}; in DoOpDetail() local
835 struct HksBlob tmpBlob = { LENGTH_TO_BE_OPERATED, tempBuf }; in DoOpDetail()
Dhks_import_rsa_test.cpp739 uint8_t tempBuf[LENGTH_TO_BE_OPERATED] = {0}; in DoOpDetail() local
740 struct HksBlob tmpBlob = { LENGTH_TO_BE_OPERATED, tempBuf }; in DoOpDetail()