/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/ |
D | hks_get_key_info_list_test.cpp | 72 uint32_t listCount = 1; variable 73 int32_t ret = HksGetKeyInfoList(nullptr, &keyInfoList, &listCount); 85 uint32_t listCount = 0; variable 86 int32_t ret = HksGetKeyInfoList(nullptr, nullptr, &listCount); 125 static void FreeKeyInfoList(struct HksKeyInfo **keyInfoList, uint32_t listCount) in FreeKeyInfoList() argument 127 for (uint32_t i = 0; i < listCount; ++i) { in FreeKeyInfoList() 140 static int32_t BuildKeyInfoList(struct HksKeyInfo **outKeyInfoList, uint32_t listCount) in BuildKeyInfoList() argument 142 …ct HksKeyInfo *keyInfoList = (struct HksKeyInfo *)HksMalloc(sizeof(struct HksKeyInfo) * listCount); in BuildKeyInfoList() 146 …)memset_s(keyInfoList, sizeof(struct HksKeyInfo) * listCount, 0, sizeof(struct HksKeyInfo) * listC… in BuildKeyInfoList() 148 for (uint32_t i = 0; i < listCount; ++i) { in BuildKeyInfoList() [all …]
|
/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
D | hks_upgrade_helper.c | 210 struct HksKeyInfo *keyInfoList, uint32_t *listCount) in HksGetkeyInfoListByProcessName() argument 217 ret = HksGetKeyAliasByProcessName(processInfo, keyInfoList, listCount); in HksGetkeyInfoListByProcessName() 219 for (uint32_t i = 0; i < *listCount; ++i) { in HksGetkeyInfoListByProcessName() 232 *listCount = realCnt; in HksGetkeyInfoListByProcessName() 236 *listCount = realCnt; in HksGetkeyInfoListByProcessName() 242 uint32_t listMaxCnt, uint32_t *listCount) in HksGetOldKeyInfoListForSmallToService() argument 247 uint32_t listCountOld = listMaxCnt - *listCount; in HksGetOldKeyInfoListForSmallToService() 252 … ret = HksGetkeyInfoListByProcessName(&rootProcessInfo, keyInfoList + *listCount, &listCountOld); in HksGetOldKeyInfoListForSmallToService() 255 *listCount = *listCount + listCountOld; in HksGetOldKeyInfoListForSmallToService()
|
D | hks_client_check.c | 116 const uint32_t *listCount) in HksCheckGetKeyInfoListParams() argument 125 if ((keyInfoList == NULL) || (listCount == NULL)) { in HksCheckGetKeyInfoListParams() 130 for (uint32_t i = 0; i < *listCount; ++i) { in HksCheckGetKeyInfoListParams()
|
D | hks_client_service.c | 86 uint32_t *listCount) in HksServiceGetKeyInfoList() argument 88 int32_t ret = HksCheckGetKeyInfoListParams(&(processInfo->processName), keyInfoList, listCount); in HksServiceGetKeyInfoList() 91 ret = HksStoreGetKeyInfoList(keyInfoList, listCount); in HksServiceGetKeyInfoList() 186 uint32_t *listCount) in HksServiceGetKeyInfoList() argument 190 uint32_t listMaxCnt = *listCount; in HksServiceGetKeyInfoList() 193 ret = HksCheckGetKeyInfoListParams(&processInfo->processName, keyInfoList, listCount); in HksServiceGetKeyInfoList() 196 ret = HksGetKeyAliasByProcessName(processInfo, keyInfoList, listCount); in HksServiceGetKeyInfoList() 198 for (uint32_t i = 0; i < *listCount; ++i) { in HksServiceGetKeyInfoList() 210 … ret = HksGetOldKeyInfoListForSmallToService(processInfo, keyInfoList, listMaxCnt, listCount); in HksServiceGetKeyInfoList()
|
D | hks_storage.c | 1221 uint32_t *listCount) in GetKeyAliasByProcessName() argument 1224 int32_t ret = GetAndCheckFileCount(fileInfo->mainPath.path, &fileCount, listCount); in GetKeyAliasByProcessName() 1228 *listCount = 0; in GetKeyAliasByProcessName() 1250 *listCount = realFileCount; in GetKeyAliasByProcessName() 1255 uint32_t *listCount) in HksGetKeyAliasByProcessName() argument 1268 ret = GetKeyAliasByProcessName(&fileInfo, keyInfoList, listCount); in HksGetKeyAliasByProcessName()
|
D | hks_storage_lite.c | 804 int32_t HksStoreGetKeyInfoList(struct HksKeyInfo *keyInfoList, uint32_t *listCount) in HksStoreGetKeyInfoList() argument 807 int32_t ret = GetAndCheckKeyCount(listCount, &keyCount); in HksStoreGetKeyInfoList() 838 *listCount = num; in HksStoreGetKeyInfoList()
|
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/ |
D | hks_ipc_check.c | 138 int32_t HksCheckIpcGetKeyInfoList(const struct HksKeyInfo *keyInfoList, uint32_t listCount) in HksCheckIpcGetKeyInfoList() argument 140 …if ((listCount == 0) || (listCount > (MAX_PROCESS_SIZE / (sizeof(uint32_t) + sizeof(uint32_t))))) { in HksCheckIpcGetKeyInfoList() 143 for (uint32_t i = 0; i < listCount; ++i) { in HksCheckIpcGetKeyInfoList() 150 uint32_t keyInfoBufSize = sizeof(listCount); in HksCheckIpcGetKeyInfoList() 151 for (uint32_t i = 0; i < listCount; ++i) { in HksCheckIpcGetKeyInfoList()
|
D | hks_ipc_serialization.c | 232 int32_t HksGetKeyInfoListPack(struct HksBlob *destData, uint32_t listCount, const struct HksKeyInfo… in HksGetKeyInfoListPack() argument 235 int32_t ret = CopyUint32ToBuffer(listCount, destData, &offset); in HksGetKeyInfoListPack() 238 for (uint32_t i = 0; i < listCount; ++i) { in HksGetKeyInfoListPack() 248 int32_t HksGetKeyInfoListUnpackFromService(const struct HksBlob *srcData, uint32_t *listCount, in HksGetKeyInfoListUnpackFromService() argument 256 if (countFromBuffer > *listCount) { in HksGetKeyInfoListUnpackFromService() 260 *listCount = countFromBuffer; in HksGetKeyInfoListUnpackFromService()
|
D | hks_client_service_ipc.c | 448 int32_t HksClientGetKeyInfoList(struct HksKeyInfo *keyInfoList, uint32_t *listCount) in HksClientGetKeyInfoList() argument 450 int32_t ret = HksCheckIpcGetKeyInfoList(keyInfoList, *listCount); in HksClientGetKeyInfoList() 454 inBlob.size = sizeof(*listCount) + (sizeof(keyInfoList->alias.size) + in HksClientGetKeyInfoList() 455 sizeof(keyInfoList->paramSet->paramSetSize)) * (*listCount); in HksClientGetKeyInfoList() 460 outBlob.size += sizeof(*listCount); in HksClientGetKeyInfoList() 461 for (uint32_t i = 0; i < *listCount; ++i) { in HksClientGetKeyInfoList() 473 ret = HksGetKeyInfoListPack(&inBlob, *listCount, keyInfoList); in HksClientGetKeyInfoList() 479 ret = HksGetKeyInfoListUnpackFromService(&outBlob, listCount, keyInfoList); in HksClientGetKeyInfoList()
|
D | hks_client_service_passthrough.c | 298 int32_t HksClientGetKeyInfoList(struct HksKeyInfo *keyInfoList, uint32_t *listCount) in HksClientGetKeyInfoList() argument 311 return HksServiceGetKeyInfoList(&processInfo, keyInfoList, listCount); in HksClientGetKeyInfoList()
|
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/ |
D | hks_ipc_serialization.c | 350 static int32_t KeyInfoListInit(struct HksKeyInfo *keyInfoList, uint32_t listCount, in KeyInfoListInit() argument 355 for (; i < listCount; ++i) { in KeyInfoListInit() 372 int32_t HksGetKeyInfoListUnpack(const struct HksBlob *srcData, uint32_t *listCount, struct HksKeyIn… in HksGetKeyInfoListUnpack() argument 375 int32_t ret = GetUint32FromBuffer(listCount, srcData, &offset); in HksGetKeyInfoListUnpack() 378 if (*listCount > (UINT32_MAX / sizeof(struct HksKeyInfo))) { in HksGetKeyInfoListUnpack() 379 HKS_LOG_E("listCount too big %" LOG_PUBLIC "u", *listCount); in HksGetKeyInfoListUnpack() 383 uint32_t keyInfoListSize = (*listCount) * sizeof(struct HksKeyInfo); in HksGetKeyInfoListUnpack() 394 ret = KeyInfoListInit(*keyInfoList, *listCount, srcData, &offset); in HksGetKeyInfoListUnpack() 403 int32_t HksGetKeyInfoListPackFromService(struct HksBlob *destData, uint32_t listCount, in HksGetKeyInfoListPackFromService() argument 407 int32_t ret = CopyUint32ToBuffer(listCount, destData, &offset); in HksGetKeyInfoListPackFromService() [all …]
|
D | hks_ipc_serialization.h | 60 int32_t HksGetKeyInfoListUnpack(const struct HksBlob *srcData, uint32_t *listCount, struct HksKeyIn… 62 int32_t HksGetKeyInfoListPackFromService(struct HksBlob *destData, uint32_t listCount,
|
D | hks_ipc_service.c | 502 static void FreeKeyInfo(uint32_t listCount, struct HksKeyInfo **keyInfoList) in FreeKeyInfo() argument 508 for (uint32_t i = 0; i < listCount; ++i) { in FreeKeyInfo() 536 uint32_t listCount = inputCount; in HksIpcServiceGetKeyInfoList() 537 ret = HksServiceGetKeyInfoList(&processInfo, keyInfoList, &listCount); in HksIpcServiceGetKeyInfoList() 540 keyInfoListBlob.size = sizeof(listCount); in HksIpcServiceGetKeyInfoList() 541 for (uint32_t i = 0; i < listCount; ++i) { in HksIpcServiceGetKeyInfoList() 552 ret = HksGetKeyInfoListPackFromService(&keyInfoListBlob, listCount, keyInfoList); in HksIpcServiceGetKeyInfoList()
|
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/upgrade_test/version_one/module_test/src/ |
D | hks_compatibility_module_test.cpp | 366 static void FreeKeyInfoList(struct HksKeyInfo **keyList, uint32_t listCount) in FreeKeyInfoList() argument 368 for (uint32_t i = 0; i < listCount; ++i) { in FreeKeyInfoList() 381 static int32_t BuildKeyInfoList(struct HksKeyInfo **outKeyInfoList, uint32_t listCount) in BuildKeyInfoList() argument 383 …struct HksKeyInfo *keyList = (struct HksKeyInfo *)HksMalloc(sizeof(struct HksKeyInfo) * listCount); in BuildKeyInfoList() 387 …void)memset_s(keyList, sizeof(struct HksKeyInfo) * listCount, 0, sizeof(struct HksKeyInfo) * listC… in BuildKeyInfoList() 389 for (uint32_t i = 0; i < listCount; ++i) { in BuildKeyInfoList() 392 FreeKeyInfoList(&keyList, listCount); in BuildKeyInfoList() 398 FreeKeyInfoList(&keyList, listCount); in BuildKeyInfoList()
|
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/include/ |
D | hks_ipc_serialization.h | 59 int32_t HksGetKeyInfoListPack(struct HksBlob *destData, uint32_t listCount, const struct HksKeyInfo… 61 int32_t HksGetKeyInfoListUnpackFromService(const struct HksBlob *srcData, uint32_t *listCount,
|
D | hks_ipc_check.h | 46 int32_t HksCheckIpcGetKeyInfoList(const struct HksKeyInfo *keyInfoList, uint32_t listCount);
|
D | hks_client_ipc.h | 70 int32_t HksClientGetKeyInfoList(struct HksKeyInfo *keyInfoList, uint32_t *listCount);
|
/base/security/huks/services/huks_standard/huks_service/main/core/include/ |
D | hks_upgrade_helper.h | 46 uint32_t listMaxCnt, uint32_t *listCount);
|
D | hks_storage.h | 83 uint32_t *listCount); 108 int32_t HksStoreGetKeyInfoList(struct HksKeyInfo *keyInfoList, uint32_t *listCount);
|
D | hks_client_check.h | 56 const uint32_t *listCount);
|
D | hks_client_service.h | 79 uint32_t *listCount);
|
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/upgrade_test/version_one/ |
D | hks_compatibility_test.cpp | 471 static void FreeKeyInfoList(struct HksKeyInfo **infoList, uint32_t listCount) in FreeKeyInfoList() argument 473 for (uint32_t i = 0; i < listCount; ++i) { in FreeKeyInfoList() 486 static int32_t BuildKeyInfoList(struct HksKeyInfo **outKeyInfoList, uint32_t listCount) in BuildKeyInfoList() argument 488 …truct HksKeyInfo *infoList = (struct HksKeyInfo *)HksMalloc(sizeof(struct HksKeyInfo) * listCount); in BuildKeyInfoList() 492 …oid)memset_s(infoList, sizeof(struct HksKeyInfo) * listCount, 0, sizeof(struct HksKeyInfo) * listC… in BuildKeyInfoList() 494 for (uint32_t i = 0; i < listCount; ++i) { in BuildKeyInfoList() 497 FreeKeyInfoList(&infoList, listCount); in BuildKeyInfoList() 503 FreeKeyInfoList(&infoList, listCount); in BuildKeyInfoList()
|
/base/security/huks/interfaces/inner_api/huks_standard/main/src/ |
D | hks_api.c | 488 struct HksKeyInfo *keyInfoList, uint32_t *listCount) in HksGetKeyInfoList() argument 493 if ((keyInfoList == NULL) || (listCount == NULL)) { in HksGetKeyInfoList() 496 int32_t ret = HksClientGetKeyInfoList(keyInfoList, listCount); in HksGetKeyInfoList() 502 (void)listCount; in HksGetKeyInfoList()
|
/base/security/huks/interfaces/inner_api/huks_standard/main/include/ |
D | hks_api.h | 222 struct HksKeyInfo *keyInfoList, uint32_t *listCount);
|