Home
last modified time | relevance | path

Searched refs:HKS_ERROR_NULL_POINTER (Results 1 – 25 of 49) sorted by relevance

12

/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/passthrough/
Dhuks_access.c36 HKS_IF_NOT_SUCC_RETURN(HksCreateHuksHdiDevice(&g_hksHalDevicePtr), HKS_ERROR_NULL_POINTER) in ENABLE_CFI()
38 HKS_IF_NULL_LOGE_RETURN(g_hksHalDevicePtr->HuksHdiModuleInit, HKS_ERROR_NULL_POINTER, in ENABLE_CFI()
46 HKS_IF_NOT_SUCC_RETURN(HksCreateHuksHdiDevice(&g_hksHalDevicePtr), HKS_ERROR_NULL_POINTER) in ENABLE_CFI()
48 HKS_IF_NULL_LOGE_RETURN(g_hksHalDevicePtr->HuksHdiRefresh, HKS_ERROR_NULL_POINTER, in ENABLE_CFI()
57 HKS_IF_NOT_SUCC_RETURN(HksCreateHuksHdiDevice(&g_hksHalDevicePtr), HKS_ERROR_NULL_POINTER) in ENABLE_CFI()
59 HKS_IF_NULL_LOGE_RETURN(g_hksHalDevicePtr->HuksHdiGenerateKey, HKS_ERROR_NULL_POINTER, in ENABLE_CFI()
68 HKS_IF_NOT_SUCC_RETURN(HksCreateHuksHdiDevice(&g_hksHalDevicePtr), HKS_ERROR_NULL_POINTER) in ENABLE_CFI()
70 HKS_IF_NULL_LOGE_RETURN(g_hksHalDevicePtr->HuksHdiImportKey, HKS_ERROR_NULL_POINTER, in ENABLE_CFI()
79 HKS_IF_NOT_SUCC_RETURN(HksCreateHuksHdiDevice(&g_hksHalDevicePtr), HKS_ERROR_NULL_POINTER) in ENABLE_CFI()
81 HKS_IF_NULL_LOGE_RETURN(g_hksHalDevicePtr->HuksHdiImportWrappedKey, HKS_ERROR_NULL_POINTER, in ENABLE_CFI()
[all …]
Dhuks_core_dynamic_hal.c37 HKS_IF_NULL_LOGE_RETURN(halDevice, HKS_ERROR_NULL_POINTER, "invalid input halDevice") in ENABLE_CFI()
50 return HKS_ERROR_NULL_POINTER; in ENABLE_CFI()
57 return HKS_ERROR_NULL_POINTER; in ENABLE_CFI()
69 HKS_IF_NULL_LOGE_RETURN(g_halDeviceHandle, HKS_ERROR_NULL_POINTER, "g_halDeviceHandle is NULL!") in ENABLE_CFI()
Dhuks_core_static_hal.c30 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()
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/
Dhks_api_test.cpp85 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksAbort failed, ret = " << ret;
97 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksFinish failed, ret = " << ret;
109 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksFinish failed, ret = " << ret;
122 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksValidateCertChain failed, ret = " << ret;
135 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksValidateCertChain failed, ret = " << ret;
270 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksBnExpMod failed, ret = " << ret;
282 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksHash failed, ret = " << ret;
294 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksMac failed, ret = " << ret;
306 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksDeriveKey failed, ret = " << ret;
318 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksAgreeKey failed, ret = " << ret;
[all …]
/base/security/huks/interfaces/innerkits/huks_standard/main/src/
Dhks_api.c60 return HKS_ERROR_NULL_POINTER; in HksGetSdkVersion()
109 return HKS_ERROR_NULL_POINTER; in HksGenerateKey()
118 return HKS_ERROR_NULL_POINTER; in HksGenerateKey()
137 return HKS_ERROR_NULL_POINTER; in HksImportKey()
156 return HKS_ERROR_NULL_POINTER; in HksImportWrappedKey()
178 return HKS_ERROR_NULL_POINTER; in HksExportPublicKey()
196 HKS_IF_NULL_RETURN(keyAlias, HKS_ERROR_NULL_POINTER) in HksDeleteKey()
214 return HKS_ERROR_NULL_POINTER; in HksGetKeyParamSet()
231 HKS_IF_NULL_RETURN(keyAlias, HKS_ERROR_NULL_POINTER) in HksKeyExist()
246 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/
Dhks_param_test.cpp178 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksGetParamSet failed, ret = " << ret;
215 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksGetParamSet failed, ret = " << ret;
239 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksBuildParamSet failed, ret = " << ret;
268 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksInitParamSet failed, ret = " << ret;
280 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksCheckParamSet failed, ret = " << ret;
292 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksFreshParamSet failed, ret = " << ret;
310 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksFreshParamSet failed, ret = " << ret;
322 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksCheckIsTagAlreadyExist failed, ret = " << ret;
353 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER)<< "HksCheckParamMatch failed, ret = " << ret;
Dhks_template_test.cpp175 … HKS_IF_NULL_LOGE_RETURN(nullptr, HKS_ERROR_NULL_POINTER, "is nullptr: %d", HKS_ERROR_NULL_POINTER) in TestNullLogeReturn()
188 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER);
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_others_test.cpp61 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER);
72 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER);
116 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER);
/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/
Dhks_others_test.c65 TEST_ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER); in LITE_TEST_CASE()
76 TEST_ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER); in LITE_TEST_CASE()
131 TEST_ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER); in LITE_TEST_CASE()
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/
Dhks_others_test.cpp63 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER);
74 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER);
129 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER);
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
Dhks_samgr_client_proxy.c83 return HKS_ERROR_NULL_POINTER; in CurrentCallback()
93 return HKS_ERROR_NULL_POINTER; in CurrentCallback()
114 return HKS_ERROR_NULL_POINTER;
177 HKS_IF_NULL_RETURN(iUnknown, HKS_ERROR_NULL_POINTER) in HksSendRequestSync()
181 return HKS_ERROR_NULL_POINTER; in HksSendRequestSync()
184 HKS_IF_NULL_RETURN(clientProxy->IpcAsyncCallBack, HKS_ERROR_NULL_POINTER) in HksSendRequestSync()
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_param.c147 HKS_IF_NULL_RETURN(paramSet, HKS_ERROR_NULL_POINTER) in HksCheckParamSetTag()
210 HKS_IF_NULL_LOGE_RETURN(paramSet, HKS_ERROR_NULL_POINTER, "invalid NULL paramSet") in HksFreshParamSet()
248 HKS_IF_NULL_RETURN(paramSet, HKS_ERROR_NULL_POINTER) in HksCheckParamSet()
261 HKS_IF_NULL_LOGE_RETURN(paramSet, HKS_ERROR_NULL_POINTER, "invalid init params!") in HksInitParamSet()
296 return HKS_ERROR_NULL_POINTER; in HksBuildParamSet()
372 HKS_IF_NULL_RETURN(outParamSet, HKS_ERROR_NULL_POINTER) in HksGetParamSet()
392 return HKS_ERROR_NULL_POINTER; in HksCheckParamMatch()
430 return HKS_ERROR_NULL_POINTER; in HksCheckIsTagAlreadyExist()
/base/security/huks/interfaces/innerkits/huks_lite/
Dhks_tmp_client.c26 return HKS_ERROR_NULL_POINTER; in hks_generate_random()
Dhks_errno.h73 #define HKS_ERROR_NULL_POINTER ((int32_t)-1000) macro
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_hash.c86 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/
Dhks_file_operator_test.cpp139 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksIsDirExist failed, ret = " << ret;
151 ASSERT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksIsFileExist failed, ret = " << ret;
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_hmac.c166 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/interfaces/kits/c/src/
Dnative_huks_api_adapter.c29 ret = HKS_ERROR_NULL_POINTER; in HuksAttestAdapter()
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/
Dhks_core_service_test.cpp68 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER);
99 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER);
152 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER);
185 ASSERT_TRUE(ret == HKS_ERROR_NULL_POINTER);
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/systemapi_mock/src/
Duseridm_mock_test.cpp65 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER);
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/os_dependency/idl/passthrough/core/src/
Dhuks_core_dynamic_hal_test.cpp66 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksIpcCoreDynamicHalTest001 failed, ret = " << ret;
/base/security/huks/services/huks_standard/huks_service/main/systemapi_mock/src/
Dhks_useridm_api_mock.cpp100 HKS_IF_NULL_RETURN(hksValue, HKS_ERROR_NULL_POINTER) in HksConvertUserIamTypeToHksType()
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter.c432 HKS_IF_NULL_LOGE_RETURN(rsa, HKS_ERROR_NULL_POINTER, in X509PublicKeyToRsa()
525 HKS_IF_NULL_LOGE_RETURN(ecKey, HKS_ERROR_NULL_POINTER, in X509PublicKeyToEcc()
537 HKS_IF_NULL_RETURN(*info, HKS_ERROR_NULL_POINTER) in GetDsaKeyInfo()
551 HKS_IF_NULL_LOGE_RETURN(dsa, HKS_ERROR_NULL_POINTER, in X509PublicKeyToDsa()
608 HKS_IF_NULL_LOGE_RETURN(dh, HKS_ERROR_NULL_POINTER, in X509PublicKeyToDh()
612 HKS_IF_NULL_LOGE_RETURN(pubKey, HKS_ERROR_NULL_POINTER, in X509PublicKeyToDh()
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_export_test_mt.cpp89 EXPECT_EQ(HksExportPublicKey(nullptr, nullptr, &publicKey), HKS_ERROR_NULL_POINTER);
103 EXPECT_EQ(HksExportPublicKey(&testAlias, nullptr, nullptr), HKS_ERROR_NULL_POINTER);
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_core_service_three_stage.c587 HKS_IF_NULL_LOGE_RETURN(ctx, HKS_ERROR_NULL_POINTER, "ctx is invalid: null!") in CoreCipherUpdate()
619 HKS_IF_NULL_LOGE_RETURN(ctx, HKS_ERROR_NULL_POINTER, "ctx is invalid: null!") in CoreAesEncryptFinish()
660 HKS_IF_NULL_LOGE_RETURN(ctx, HKS_ERROR_NULL_POINTER, "ctx is invalid: null!") in CoreAesDecryptFinish()
681 HKS_IF_NULL_LOGE_RETURN(ctx, HKS_ERROR_NULL_POINTER, "ctx is invalid: null!") in CoreSm4EncryptFinish()
705 HKS_IF_NULL_LOGE_RETURN(ctx, HKS_ERROR_NULL_POINTER, "ctx is invalid: null!") in CoreSm4DecryptFinish()
1142 HKS_IF_NULL_LOGE_RETURN(ctx, HKS_ERROR_NULL_POINTER, "ctx is NULL!") in HksCoreDeriveThreeStageFinish()
1160 HKS_IF_NULL_LOGE_RETURN(ctx, HKS_ERROR_NULL_POINTER, "ctx is NULL!") in HksCoreDeriveThreeStageAbort()
1248 HKS_IF_NULL_LOGE_RETURN(ctx, HKS_ERROR_NULL_POINTER, "ctx is NULL!") in HksCoreAgreeThreeStageFinish()
1265 HKS_IF_NULL_LOGE_RETURN(ctx, HKS_ERROR_NULL_POINTER, "ctx is NULL!") in HksCoreAgreeThreeStageAbort()
1316 HKS_IF_NULL_LOGE_RETURN(ctx, HKS_ERROR_NULL_POINTER, "ctx is NULL!") in HksCoreMacThreeStageUpdate()
[all …]

12