Home
last modified time | relevance | path

Searched refs:HASH_LENGTH (Results 1 - 9 of 9) sorted by relevance

/base/update/sys_installer_lite/frameworks/source/verify/
H A Dhota_verify.c24 static uint8 g_hash[HASH_LENGTH] = {0};
32 if (memset_s(g_hash, HASH_LENGTH, 0, HASH_LENGTH) != EOK) { in HotaHashInit()
61 if (length >= HASH_LENGTH) { in HotaGetHash()
64 if (memcpy_s(buffer, HASH_LENGTH, g_hash, HASH_LENGTH) != EOK) { in HotaGetHash()
79 if ((dataAddr == NULL) || (hash == NULL) || (dataLen == 0) || (hashLen < HASH_LENGTH)) { in HotaCalcImageHash()
139 uint8 imageHashLocal[HASH_LENGTH] = {0}; in HotaSignVerify()
140 if (HotaCalcImageHash(image, imgLen, imageHashLocal, HASH_LENGTH) != OHOS_SUCCESS) { in HotaSignVerify()
146 int ret = HotaSignVerifyByHash(imageHashLocal, HASH_LENGTH, imageSig in HotaSignVerify()
[all...]
H A Dhota_verify.h28 #define HASH_LENGTH 32 macro
/base/startup/init/services/modules/udid/
H A Dudid_adp.c35 unsigned char hash[HASH_LENGTH] = { 0 }; in GetSha256Value()
43 for (size_t i = 0; i < HASH_LENGTH; i++) { in GetSha256Value()
/base/startup/init/interfaces/innerkits/syspara/
H A Dparam_comm.h29 #define HASH_LENGTH 32 macro
/base/update/sys_installer_lite/frameworks/source/updater/
H A Dhota_updater.c27 #define HASH_LENGTH 32 macro
77 unsigned char shaData[HASH_LENGTH];
312 unsigned char hashOut[HASH_LENGTH] = {0}; in ParseHotaComponent()
313 HotaGetHash(hashOut, HASH_LENGTH); in ParseHotaComponent()
322 if (memcmp(hashOut, g_componentInfos.table[g_currentDloadComp.index - 1].shaData, HASH_LENGTH) != EOK) { in ParseHotaComponent()
/base/account/os_account/services/accountmgr/src/
H A Dohos_account_manager.cpp59 constexpr std::uint32_t HASH_LENGTH = 32; member
61 constexpr std::uint32_t OHOS_ACCOUNT_UDID_LENGTH = HASH_LENGTH * 2;
96 unsigned char hash[HASH_LENGTH] = {0}; in ReturnOhosUdidWithSha256()
107 for (std::uint32_t i = 0; i < HASH_LENGTH; ++i) { in ReturnOhosUdidWithSha256()
/base/startup/init/simulator/parameter/src/
H A Dparameter_common.c32 #define HASH_LENGTH 32 macro
/base/update/sys_installer_lite/frameworks/test/unittest/common/src/
H A Dota_test.cpp307 if ((dataAddr == nullptr) || (hash == nullptr) || (dataLen == 0) || (hashLen < HASH_LENGTH)) { in HotaCalcImageHash()
399 unsigned char hashOut[HASH_LENGTH] = {0}; in HWTEST_F()
400 EXPECT_EQ(0, HotaGetHash(hashOut, HASH_LENGTH)); in HWTEST_F()
442 uint8 imageHashLocal[HASH_LENGTH] = {0}; in HWTEST_F()
443 ret = HotaCalcImageHash(reinterpret_cast<uint8 *>(g_otaPkg), INFO_COMP_DATA_LEN, imageHashLocal, HASH_LENGTH); in HWTEST_F()
446 ret = AppVerifyData(&rsa, imageHashLocal, HASH_LENGTH, in HWTEST_F()
/base/account/os_account/frameworks/appaccount/native/src/
H A Dapp_account_info.cpp49 constexpr uint32_t HASH_LENGTH = 32; member
58 unsigned char hash[HASH_LENGTH] = {0}; in ComputeHash()
67 for (std::uint32_t i = 0; i < HASH_LENGTH; ++i) { in ComputeHash()

Completed in 7 milliseconds