Searched refs:mainPath (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/storage/src/ |
H A D | hks_storage_util_test.cpp | 92 ASSERT_EQ(strlen(fileInfo.mainPath.fileName), strlen(material.keyAliasPath)); 97 ASSERT_EQ(strlen(fileInfo.mainPath.path), strlen(expectPath)) << fileInfo.mainPath.path; 121 ASSERT_EQ(strlen(fileInfo.mainPath.fileName), strlen(material.keyAliasPath)); 126 ASSERT_EQ(strlen(fileInfo.mainPath.path), strlen(expectPath)) << fileInfo.mainPath.path; 150 ASSERT_EQ(strlen(fileInfo.mainPath.fileName), strlen(material.keyAliasPath)); 155 ASSERT_EQ(strlen(fileInfo.mainPath.path), strlen(expectPath)) << fileInfo.mainPath.path; 179 ASSERT_EQ(strlen(fileInfo.mainPath.fileName), strlen(material.keyAliasPath)); 184 ASSERT_EQ(strlen(fileInfo.mainPath.path), strlen(expectPath)) << fileInfo.mainPath.path; 214 ASSERT_EQ(strlen(fileInfo.mainPath.path), strlen(expectPath)) << fileInfo.mainPath.path; 244 ASSERT_EQ(strlen(fileInfo.mainPath.path), strlen(expectPath)) << fileInfo.mainPath.path; [all …]
|
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/ |
H A D | hks_storage.c | 215 int32_t isMainFileExist = HksIsFileExist(fileInfo->mainPath.path, fileInfo->mainPath.fileName); in DeleteKeyBlob() 229 ret = HksStorageRemoveFile(fileInfo->mainPath.path, fileInfo->mainPath.fileName); in DeleteKeyBlob() 262 int32_t isMainFileExist = HksIsFileExist(fileInfo->mainPath.path, fileInfo->mainPath.fileName); in IsKeyBlobExist() 271 fileInfo->mainPath.path, fileInfo->mainPath.fileName) != HKS_SUCCESS) { in IsKeyBlobExist() 283 …ret = RecordKeyOperation(KEY_OPERATION_SAVE, fileInfo->mainPath.path, fileInfo->mainPath.fileName); in HksStoreKeyBlob() 286 ret = HksStorageWriteFile(fileInfo->mainPath.path, fileInfo->mainPath.fileName, 0, in HksStoreKeyBlob() 305 …ret = RecordKeyOperation(KEY_OPERATION_DELETE, fileInfo->mainPath.path, fileInfo->mainPath.fileNam… in HksStoreDeleteKeyBlob() 477 ret = GetFileCount(fileInfo->mainPath.path, fileCount); in HksGetKeyCountByProcessName() 876 ret = CopyKeyBlobFromSrc(oldFileInfo->mainPath.path, oldFileInfo->mainPath.fileName, in HksStoreRenameKeyAlias() 877 newFileInfo->mainPath.path, newFileInfo->mainPath.fileName); in HksStoreRenameKeyAlias() [all …]
|
H A D | hks_storage_utils.c | 247 fileInfo->mainPath.size = HKS_MAX_FILE_NAME_LEN; in FileInfoInit() 249 int32_t ret = DataInit(&fileInfo->mainPath.path, fileInfo->mainPath.size); in FileInfoInit() 250 ret += DataInit(&fileInfo->mainPath.fileName, fileInfo->mainPath.size); in FileInfoInit() 263 HKS_FREE(fileInfo->mainPath.path); in FileInfoFree() 264 HKS_FREE(fileInfo->mainPath.fileName); in FileInfoFree() 265 fileInfo->mainPath.size = 0; in FileInfoFree() 579 ret = GetPathInfo(material, HKS_KEY_STORE_PATH, HKS_STORE_SERVICE_PATH, &fileInfo->mainPath); in HksGetFileInfo() 582 ret = GetPathInfo(material, HKS_KEY_STORE_PATH, NULL, &fileInfo->mainPath); in HksGetFileInfo()
|
H A D | hks_storage_manager.c | 407 ret = HksStoreGetKeyBlob(&fileInfo.mainPath, keyBlob); in HksManageStoreGetKeyBlob() 414 if (HksStorageWriteFile(fileInfo.mainPath.path, fileInfo.mainPath.fileName, 0, in HksManageStoreGetKeyBlob() 452 ret = HksStoreGetKeyBlobSize(&fileInfo.mainPath, keyBlobSize); in HksManageStoreGetKeyBlobSize()
|
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/upgrade/file_transfer/src/ |
H A D | hks_file_transfer.c | 101 *newPath = (char *)HksMalloc(strlen(fileInfo.mainPath.path) + 1); in ConstructNewFilePath() 107 (void)memcpy_s(*newPath, strlen(fileInfo.mainPath.path), in ConstructNewFilePath() 108 fileInfo.mainPath.path, strlen(fileInfo.mainPath.path)); in ConstructNewFilePath()
|
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/hks_storage/include/ |
H A D | hks_storage_utils.h | 44 struct HksStoreInfo mainPath; member
|