/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/passthrough/ |
H A D | huks_access.c | 36 HKS_IF_NOT_SUCC_RETURN(HksCreateHuksHdiDevice(&g_hksHalDevicePtr), HKS_ERROR_NULL_POINTER) in HuksAccessModuleInit() 38 HKS_IF_NULL_LOGE_RETURN(g_hksHalDevicePtr->HuksHdiModuleInit, HKS_ERROR_NULL_POINTER, in HuksAccessModuleInit() 46 HKS_IF_NOT_SUCC_RETURN(HksCreateHuksHdiDevice(&g_hksHalDevicePtr), HKS_ERROR_NULL_POINTER) in HuksAccessModuleDestroy() 48 HKS_IF_NULL_LOGE_RETURN(g_hksHalDevicePtr->HuksHdiModuleDestroy, HKS_ERROR_NULL_POINTER, in HuksAccessModuleDestroy() 56 HKS_IF_NOT_SUCC_RETURN(HksCreateHuksHdiDevice(&g_hksHalDevicePtr), HKS_ERROR_NULL_POINTER) in HuksAccessRefresh() 58 HKS_IF_NULL_LOGE_RETURN(g_hksHalDevicePtr->HuksHdiRefresh, HKS_ERROR_NULL_POINTER, in HuksAccessRefresh() 67 HKS_IF_NOT_SUCC_RETURN(HksCreateHuksHdiDevice(&g_hksHalDevicePtr), HKS_ERROR_NULL_POINTER) in HuksAccessGenerateKey() 69 HKS_IF_NULL_LOGE_RETURN(g_hksHalDevicePtr->HuksHdiGenerateKey, HKS_ERROR_NULL_POINTER, in HuksAccessGenerateKey() 78 HKS_IF_NOT_SUCC_RETURN(HksCreateHuksHdiDevice(&g_hksHalDevicePtr), HKS_ERROR_NULL_POINTER) in HuksAccessImportKey() 80 HKS_IF_NULL_LOGE_RETURN(g_hksHalDevicePtr->HuksHdiImportKey, HKS_ERROR_NULL_POINTER, in HuksAccessImportKey() [all...] |
H A D | huks_hdi_access.c | 57 return HKS_ERROR_NULL_POINTER; in InitHdiProxyInstance() 66 HKS_IF_NOT_SUCC_RETURN(InitHdiProxyInstance(), HKS_ERROR_NULL_POINTER) in HuksAccessModuleInit() 68 HKS_IF_NULL_LOGE_RETURN(g_hksHdiProxyInstance->ModuleInit, HKS_ERROR_NULL_POINTER, in HuksAccessModuleInit() 76 HKS_IF_NOT_SUCC_RETURN(InitHdiProxyInstance(), HKS_ERROR_NULL_POINTER) in HuksAccessModuleDestroy() 78 HKS_IF_NULL_LOGE_RETURN(g_hksHdiProxyInstance->ModuleDestroy, HKS_ERROR_NULL_POINTER, in HuksAccessModuleDestroy() 92 HKS_IF_NOT_SUCC_RETURN(InitHdiProxyInstance(), HKS_ERROR_NULL_POINTER) in HdiProxyGenerateKey() 94 HKS_IF_NULL_LOGE_RETURN(g_hksHdiProxyInstance->GenerateKey, HKS_ERROR_NULL_POINTER, in HdiProxyGenerateKey() 111 HKS_IF_NOT_SUCC_RETURN(InitHdiProxyInstance(), HKS_ERROR_NULL_POINTER) in HdiProxyImportKey() 113 HKS_IF_NULL_LOGE_RETURN(g_hksHdiProxyInstance->ImportKey, HKS_ERROR_NULL_POINTER, in HdiProxyImportKey() 129 HKS_IF_NOT_SUCC_RETURN(InitHdiProxyInstance(), HKS_ERROR_NULL_POINTER) in HdiProxyImportWrappedKey() [all...] |
H A D | huks_core_static_hal.c | 30 HKS_IF_NULL_LOGE_RETURN(halDevice, HKS_ERROR_NULL_POINTER, "invalid input halDevice") in HksCreateHuksHdiDevice() 37 HKS_IF_NULL_LOGE_RETURN(*halDevice, HKS_ERROR_NULL_POINTER, "g_hksHalDevicePtr is NULL!") in HksCreateHuksHdiDevice()
|
H A D | huks_core_dynamic_hal.c | 39 HKS_IF_NULL_LOGE_RETURN(halDevice, HKS_ERROR_NULL_POINTER, "invalid input halDevice") in HksCreateHuksHdiDevice() 78 return HKS_ERROR_NULL_POINTER; in HksCreateHuksHdiDevice() 98 return HKS_ERROR_NULL_POINTER; in HksDestroyHuksHdiDevice()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/ |
H A D | hks_api_test.cpp | 80 * @tc.desc: tdd HksAbort with nullptr input, expecting HKS_ERROR_NULL_POINTER 87 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksAbort failed, ret = " << ret; in HWTEST_F() 92 * @tc.desc: tdd HksFinish with nullptr input, expecting HKS_ERROR_NULL_POINTER 99 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksFinish failed, ret = " << ret; in HWTEST_F() 104 * @tc.desc: tdd HksUpdate with nullptr input, expecting HKS_ERROR_NULL_POINTER 111 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksFinish failed, ret = " << ret; in HWTEST_F() 116 * @tc.desc: tdd HksValidateCertChain with certChain nullptr input, expecting HKS_ERROR_NULL_POINTER 124 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksValidateCertChain failed, ret = " << ret; in HWTEST_F() 129 * @tc.desc: tdd HksValidateCertChain with paramSetOut nullptr input, expecting HKS_ERROR_NULL_POINTER 137 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksValidateCertChai in HWTEST_F() [all...] |
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/bms/src/ |
H A D | hks_bms_api_wrap.cpp | 51 HKS_IF_NULL_LOGE_RETURN(jsonObj, HKS_ERROR_NULL_POINTER, "create cjson object failed.") in ConvertCallerInfoToJson() 66 return HKS_ERROR_NULL_POINTER; in ConvertCallerInfoToJson() 73 return HKS_ERROR_NULL_POINTER; in ConvertCallerInfoToJson() 98 HKS_IF_NULL_LOGE_RETURN(processInfo, HKS_ERROR_NULL_POINTER, "processInfo is nullptr.") in HksGetHapInfo() 99 HKS_IF_NULL_LOGE_RETURN(hapInfo, HKS_ERROR_NULL_POINTER, "hapInfo is nullptr.") in HksGetHapInfo() 132 HKS_IF_NULL_LOGE_RETURN(processInfo, HKS_ERROR_NULL_POINTER, "processInfo is nullptr.") in HksGetHapPkgName() 133 HKS_IF_NULL_LOGE_RETURN(hapPkgName, HKS_ERROR_NULL_POINTER, "hapPkgName is nullptr.") in HksGetHapPkgName() 161 HKS_IF_NULL_LOGE_RETURN(processInfo, HKS_ERROR_NULL_POINTER, "processInfo is nullptr.") in HksGetSaInfo() 162 HKS_IF_NULL_LOGE_RETURN(saInfo, HKS_ERROR_NULL_POINTER, "saInfo is nullptr.") in HksGetSaInfo() 190 HKS_IF_NULL_LOGE_RETURN(processInfo, HKS_ERROR_NULL_POINTER, "processInf in HksGetSaProcessName() [all...] |
/base/security/huks/interfaces/inner_api/huks_standard/source/ |
H A D | hks_api.c | 66 return HKS_ERROR_NULL_POINTER; in HksGetSdkVersion() 118 return HKS_ERROR_NULL_POINTER; in HksGenerateKey() 127 return HKS_ERROR_NULL_POINTER; in HksGenerateKey() 146 return HKS_ERROR_NULL_POINTER; in HksImportKey() 165 return HKS_ERROR_NULL_POINTER; in HksImportWrappedKey() 185 return HKS_ERROR_NULL_POINTER; in HksExportPublicKey() 202 HKS_IF_NULL_RETURN(keyAlias, HKS_ERROR_NULL_POINTER) in HksDeleteKey() 219 return HKS_ERROR_NULL_POINTER; in HksGetKeyParamSet() 236 HKS_IF_NULL_RETURN(keyAlias, HKS_ERROR_NULL_POINTER) in HksKeyExist() 251 HKS_IF_NULL_RETURN(random, HKS_ERROR_NULL_POINTER) in HksGenerateRandom() [all...] |
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/ |
H A D | hks_param_test.cpp | 173 * @tc.desc: tdd HksGetParamSet, expecting HKS_ERROR_NULL_POINTER 180 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksGetParamSet failed, ret = " << ret; in HWTEST_F() 205 * @tc.desc: tdd HksGetParamSet, expecting HKS_ERROR_NULL_POINTER 217 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksGetParamSet failed, ret = " << ret; in HWTEST_F() 236 * @tc.desc: tdd HksBuildParamSet, expecting HKS_ERROR_NULL_POINTER 243 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksBuildParamSet failed, ret = " << ret; in HWTEST_F() 265 * @tc.desc: tdd HksInitParamSet, expecting HKS_ERROR_NULL_POINTER 272 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksInitParamSet failed, ret = " << ret; in HWTEST_F() 277 * @tc.desc: tdd HksCheckParamSet, expecting HKS_ERROR_NULL_POINTER 284 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksCheckParamSe in HWTEST_F() [all...] |
H A D | hks_template_test.cpp | 179 HKS_IF_NULL_LOGE_RETURN(nullptr, HKS_ERROR_NULL_POINTER, "is nullptr: %d", HKS_ERROR_NULL_POINTER) in TestNullLogeReturn() 185 * @tc.desc: tdd HKS_IF_NULL_LOGE_RETURN, expecting HKS_ERROR_NULL_POINTER 192 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER); in HWTEST_F()
|
/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/ |
H A D | hks_others_test.c | 66 TEST_ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER); in LITE_TEST_CASE() 77 TEST_ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER); in LITE_TEST_CASE() 132 TEST_ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER); in LITE_TEST_CASE()
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
H A D | hks_others_test.cpp | 63 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER); in HWTEST_F() 74 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER); in HWTEST_F() 118 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER); in HWTEST_F()
|
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/ |
H A D | hks_others_test.cpp | 64 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER); in HWTEST_F() 75 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER); in HWTEST_F() 130 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER); in HWTEST_F()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/crypto_engine_test/src/ |
H A D | hks_openssl_aes_test.cpp | 117 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksAesEngineTest002 failed, ret = " << ret; in HWTEST_F() 120 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksAesEngineTest002 failed, ret = " << ret; in HWTEST_F() 125 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksAesEngineTest002 failed, ret = " << ret; in HWTEST_F() 127 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksAesEngineTest002 failed, ret = " << ret; in HWTEST_F() 149 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksAesEngineTest003 failed, ret = " << ret; in HWTEST_F() 157 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksAesEngineTest003 failed, ret = " << ret; in HWTEST_F() 166 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksAesEngineTest003 failed, ret = " << ret; in HWTEST_F() 174 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksAesEngineTest003 failed, ret = " << ret; in HWTEST_F()
|
H A D | hks_openssl_hmac_test.cpp | 72 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksHmacEngineTest001 failed, ret = " << ret; in HWTEST_F() 75 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksHmacEngineTest001 failed, ret = " << ret; in HWTEST_F()
|
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/ |
H A D | hks_samgr_client_proxy.c | 86 return HKS_ERROR_NULL_POINTER; in CurrentCallback() 123 return HKS_ERROR_NULL_POINTER; in HksIpcCall() 174 return HKS_ERROR_NULL_POINTER; in HksSendRequestSync() 180 return HKS_ERROR_NULL_POINTER; in HksSendRequestSync()
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
H A D | hks_core_service_key_operate_three_stage.c | 99 HKS_IF_NULL_LOGE_RETURN(paramSet, HKS_ERROR_NULL_POINTER, "paramSet == NULL") in GetPurposeAndAlgorithm() 146 return HKS_ERROR_NULL_POINTER; in CoreInitPreCheck() 166 return HKS_ERROR_NULL_POINTER; in HksBatchCheck() 188 return HKS_ERROR_NULL_POINTER; in HksCoreInitProcess() 212 return HKS_ERROR_NULL_POINTER; in HksCoreUpdateProcess() 246 return HKS_ERROR_NULL_POINTER; in HksCoreFinishProcess() 283 return HKS_ERROR_NULL_POINTER; in HksAddBatchTimeToKeyNode() 379 return HKS_ERROR_NULL_POINTER; in GetParamsForUpdateAndFinish() 394 return HKS_ERROR_NULL_POINTER; in HksCheckBatchUpdateTime() 410 return HKS_ERROR_NULL_POINTER; in HksBatchUpdate() [all...] |
/base/security/huks/frameworks/huks_standard/main/common/src/ |
H A D | hks_param.c | 172 HKS_IF_NULL_RETURN(paramSet, HKS_ERROR_NULL_POINTER) in HksCheckParamSetTag() 235 HKS_IF_NULL_RETURN(paramSet, HKS_ERROR_NULL_POINTER) in HksCheckParamSet() 248 HKS_IF_NULL_LOGE_RETURN(paramSet, HKS_ERROR_NULL_POINTER, "invalid init params!") in HksInitParamSet() 286 return HKS_ERROR_NULL_POINTER; in HksBuildParamSet() 357 HKS_IF_NULL_LOGE_RETURN(paramSet, HKS_ERROR_NULL_POINTER, "invalid NULL paramSet") in HksFreshParamSet() 396 HKS_IF_NULL_RETURN(outParamSet, HKS_ERROR_NULL_POINTER) in HksGetParamSet() 416 return HKS_ERROR_NULL_POINTER; in HksCheckParamMatch() 454 return HKS_ERROR_NULL_POINTER; in HksCheckIsTagAlreadyExist() 475 return HKS_ERROR_NULL_POINTER; in HksDeleteTagsFromParamSet()
|
/base/security/huks/services/huks_standard/huks_service/main/plugin_proxy/src/ |
H A D | hks_plugin_adapter.cpp | 71 int32_t ret = HKS_ERROR_NULL_POINTER;
in ENABLE_CFI() 115 return HKS_ERROR_NULL_POINTER;
in HksInitPluginProxy()
|
/base/security/huks/interfaces/inner_api/huks_lite/ |
H A D | hks_tmp_client.c | 26 return HKS_ERROR_NULL_POINTER; in hks_generate_random()
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
H A D | hks_mbedtls_hash.c | 86 HKS_IF_NULL_RETURN(context, HKS_ERROR_NULL_POINTER)
in HksMbedtlsHashMd5Update() 102 HKS_IF_NULL_RETURN(context, HKS_ERROR_NULL_POINTER)
in HksMbedtlsHashMd5Final() 168 HKS_IF_NULL_RETURN(context, HKS_ERROR_NULL_POINTER)
in HksMbedtlsHashSha1Update() 187 HKS_IF_NULL_RETURN(context, HKS_ERROR_NULL_POINTER)
in HksMbedtlsHashSha1Final() 284 HKS_IF_NULL_RETURN(context, HKS_ERROR_NULL_POINTER)
in HksMbedtlsHashSha256Final() 363 HKS_IF_NULL_RETURN(context, HKS_ERROR_NULL_POINTER)
in HksMbedtlsHashSha512Update() 383 HKS_IF_NULL_RETURN(context, HKS_ERROR_NULL_POINTER)
in HksMbedtlsHashSha512Final()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/utils_test/src/ |
H A D | hks_file_operator_test.cpp | 121 * @tc.desc: tdd HksIsDirExist, with NULL input, expect HKS_ERROR_NULL_POINTER 128 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksIsDirExist failed, ret = " << ret; in HWTEST_F() 133 * @tc.desc: tdd HksIsFileExist, with NULL input, expect HKS_ERROR_NULL_POINTER 140 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksIsFileExist failed, ret = " << ret; in HWTEST_F() 162 * @tc.desc: tdd HksFileRemove, with NULL input, expect HKS_ERROR_NULL_POINTER
|
/base/security/huks/interfaces/kits/c/src/ |
H A D | native_huks_api_adapter.c | 29 ret = HKS_ERROR_NULL_POINTER;
in HuksAttestAdapter()
|
/base/security/huks/services/huks_standard/huks_engine/main/core_dependency/src/ |
H A D | hks_core_useriam_wrap.cpp | 53 HKS_IF_NULL_RETURN(hksValue, HKS_ERROR_NULL_POINTER)
in HksCoreConvertUserIamTypeToHksType()
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
H A D | hks_openssl_hmac.c | 166 HKS_IF_NULL_LOGE_RETURN(hmacCtx, HKS_ERROR_NULL_POINTER, "hmacCtx invalid")
in HksOpensslHmacUpdate() 182 return HKS_ERROR_NULL_POINTER;
in HksOpensslHmacFinal() 189 return HKS_ERROR_NULL_POINTER;
in HksOpensslHmacFinal()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/systemapi_mock/src/ |
H A D | useridm_mock_test.cpp | 66 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER); in HWTEST_F()
|