Home
last modified time | relevance | path

Searched refs:listCount (Results 1 – 24 of 24) sorted by relevance

/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/
Dhks_get_key_info_list_test.cpp72 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/
Dhks_upgrade_helper.c210 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()
Dhks_client_check.c116 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()
Dhks_client_service.c86 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()
Dhks_storage.c1221 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()
Dhks_storage_lite.c804 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/
Dhks_ipc_check.c138 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()
Dhks_ipc_serialization.c232 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()
Dhks_client_service_ipc.c448 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()
Dhks_client_service_passthrough.c298 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/
Dhks_ipc_serialization.c350 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 …]
Dhks_ipc_serialization.h60 int32_t HksGetKeyInfoListUnpack(const struct HksBlob *srcData, uint32_t *listCount, struct HksKeyIn…
62 int32_t HksGetKeyInfoListPackFromService(struct HksBlob *destData, uint32_t listCount,
Dhks_ipc_service.c502 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/
Dhks_compatibility_module_test.cpp366 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/
Dhks_ipc_serialization.h59 int32_t HksGetKeyInfoListPack(struct HksBlob *destData, uint32_t listCount, const struct HksKeyInfo…
61 int32_t HksGetKeyInfoListUnpackFromService(const struct HksBlob *srcData, uint32_t *listCount,
Dhks_ipc_check.h46 int32_t HksCheckIpcGetKeyInfoList(const struct HksKeyInfo *keyInfoList, uint32_t listCount);
Dhks_client_ipc.h70 int32_t HksClientGetKeyInfoList(struct HksKeyInfo *keyInfoList, uint32_t *listCount);
/base/security/huks/services/huks_standard/huks_service/main/core/include/
Dhks_upgrade_helper.h46 uint32_t listMaxCnt, uint32_t *listCount);
Dhks_storage.h83 uint32_t *listCount);
108 int32_t HksStoreGetKeyInfoList(struct HksKeyInfo *keyInfoList, uint32_t *listCount);
Dhks_client_check.h56 const uint32_t *listCount);
Dhks_client_service.h79 uint32_t *listCount);
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/upgrade_test/version_one/
Dhks_compatibility_test.cpp471 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/
Dhks_api.c488 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/
Dhks_api.h222 struct HksKeyInfo *keyInfoList, uint32_t *listCount);