/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/passthrough/ |
D | huks_access.c | 36 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 …]
|
D | huks_core_dynamic_hal.c | 37 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()
|
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()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/ |
D | hks_api_test.cpp | 85 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/ |
D | hks_api.c | 60 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/ |
D | hks_param_test.cpp | 178 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;
|
D | hks_template_test.cpp | 175 … 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/ |
D | hks_others_test.cpp | 61 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/ |
D | hks_others_test.c | 65 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/ |
D | hks_others_test.cpp | 63 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/ |
D | hks_samgr_client_proxy.c | 83 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/ |
D | hks_param.c | 147 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/ |
D | hks_tmp_client.c | 26 return HKS_ERROR_NULL_POINTER; in hks_generate_random()
|
D | hks_errno.h | 73 #define HKS_ERROR_NULL_POINTER ((int32_t)-1000) macro
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
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/ |
D | hks_file_operator_test.cpp | 139 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/ |
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/interfaces/kits/c/src/ |
D | native_huks_api_adapter.c | 29 ret = HKS_ERROR_NULL_POINTER; in HuksAttestAdapter()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/ |
D | hks_core_service_test.cpp | 68 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/ |
D | useridm_mock_test.cpp | 65 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/ |
D | huks_core_dynamic_hal_test.cpp | 66 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksIpcCoreDynamicHalTest001 failed, ret = " << ret;
|
/base/security/huks/services/huks_standard/huks_service/main/systemapi_mock/src/ |
D | hks_useridm_api_mock.cpp | 100 HKS_IF_NULL_RETURN(hksValue, HKS_ERROR_NULL_POINTER) in HksConvertUserIamTypeToHksType()
|
/base/security/huks/utils/crypto_adapter/ |
D | hks_client_service_adapter.c | 432 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/ |
D | hks_export_test_mt.cpp | 89 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/ |
D | hks_core_service_three_stage.c | 587 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 …]
|