Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 1619) sorted by relevance

12345678910>>...65

/base/security/crypto_framework/test/unittest/src/
Dcrypto_aes_cipher_test.cpp85 int32_t ret = HcfSymKeyGeneratorCreate(algoName, &generator); in GenerateSymKey() local
86 if (ret != 0) { in GenerateSymKey()
88 return ret; in GenerateSymKey()
91 ret = generator->generateSymKey(generator, key); in GenerateSymKey()
92 if (ret != 0) { in GenerateSymKey()
96 return ret; in GenerateSymKey()
108 int32_t ret = HcfSymKeyGeneratorCreate(algoName, &generator); in ConvertSymKey() local
109 if (ret != 0) { in ConvertSymKey()
110 LOGE("HcfSymKeyGeneratorCreate failed!%d", ret); in ConvertSymKey()
111 return ret; in ConvertSymKey()
[all …]
Dcrypto_3des_cipher_test.cpp59 int32_t ret = HcfSymKeyGeneratorCreate("3DES192", &generator); in GenerateDesSymKey() local
60 if (ret != 0) { in GenerateDesSymKey()
62 return ret; in GenerateDesSymKey()
65 ret = generator->generateSymKey(generator, key); in GenerateDesSymKey()
66 if (ret != 0) { in GenerateDesSymKey()
70 return ret; in GenerateDesSymKey()
80 int32_t ret = cipher->init(cipher, ENCRYPT_MODE, (HcfKey *)key, params); in DesEncrypt() local
81 if (ret != 0) { in DesEncrypt()
82 LOGE("init failed! %d", ret); in DesEncrypt()
83 return ret; in DesEncrypt()
[all …]
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_test_curve25519.c34 int32_t ret = HksInitParamSet(&paramSet); in TestGenerateEd25519Key() local
35 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
39 ret = HksAddParams(paramSet, &algParam, 1); in TestGenerateEd25519Key()
40 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
44 ret = HksAddParams(paramSet, &keySizeParam, 1); in TestGenerateEd25519Key()
45 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
49 ret = HksAddParams(paramSet, &purposeParam, 1); in TestGenerateEd25519Key()
50 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
54 ret = HksAddParams(paramSet, &digestParam, 1); in TestGenerateEd25519Key()
55 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
[all …]
/base/security/huks/test/unittest/huks_lite_test/common/
Dhks_test_curve25519.c36 int32_t ret = HksInitParamSet(&paramSet); in TestGenerateEd25519Key() local
37 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
41 ret = HksAddParams(paramSet, &algParam, 1); in TestGenerateEd25519Key()
42 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
46 ret = HksAddParams(paramSet, &keySizeParam, 1); in TestGenerateEd25519Key()
47 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
51 ret = HksAddParams(paramSet, &purposeParam, 1); in TestGenerateEd25519Key()
52 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
56 ret = HksAddParams(paramSet, &digestParam, 1); in TestGenerateEd25519Key()
57 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key()
[all …]
/base/sensors/sensor_lite/interfaces/kits/native/test/unittest/src/
Dsensor_agent_interfaces_test.cpp61 int32_t ret = GetAllSensors(&sensorInfo, &count); variable
71 EXPECT_EQ(ret, 0) << "GetAllSensors ret = " << ret << endl;
84 int32_t ret = GetAllSensors(sensorInfo, (int32_t *)NULLPTR); variable
85 EXPECT_EQ(ret, SENSOR_ERROR_INVALID_PARAM) << "GetAllSensors ret = " << ret << endl;
99 int32_t ret = GetAllSensors(sensorInfo, &count); variable
100 EXPECT_EQ(ret, SENSOR_ERROR_INVALID_PARAM) << "GetAllSensors ret = " << ret << endl;
113 int32_t ret = GetAllSensors(&sensorInfo, (int32_t *)NULLPTR); variable
114 EXPECT_EQ(ret, SENSOR_ERROR_INVALID_PARAM) << "GetAllSensors ret = " << ret << endl;
127 int32_t ret = ActivateSensor(-1, &sensorUser); variable
128 EXPECT_EQ(ret, SENSOR_ERROR_INVALID_PARAM) << "ActivateSensor ret = " << ret << endl;
[all …]
/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_client_service.c62 int32_t ret = HksStoreGetKeyBlob(processInfo, keyAlias, mode, key); in GetKeyData() local
63 HKS_IF_NOT_SUCC_LOGE(ret, "get key blob from storage failed, ret = %" LOG_PUBLIC "d", ret) in GetKeyData()
64 return ret; in GetKeyData()
71 int32_t ret = HksStoreGetToatalSize(&size); in CheckKeyCondition() local
72 …HKS_IF_NOT_SUCC_LOGE_RETURN(ret, ret, "get total size from storage failed, ret = %" LOG_PUBLIC "d"… in CheckKeyCondition()
76 ret = HksStoreIsKeyBlobExist(processInfo, keyAlias, HKS_STORAGE_TYPE_KEY); in CheckKeyCondition()
77 HKS_IF_NOT_SUCC_LOGE_RETURN(ret, HKS_ERROR_STORAGE_FAILURE, "buffer exceeds limit") in CheckKeyCondition()
86 int32_t ret = TranslateKeyInfoBlobToParamSet(NULL, key, &tmpParamSet); in GetKeyParamSet() local
87 HKS_IF_NOT_SUCC_RETURN(ret, ret) in GetKeyParamSet()
95 ret = HKS_ERROR_INSUFFICIENT_MEMORY; in GetKeyParamSet()
[all …]
Dhks_storage.c151 int32_t ret = HKS_SUCCESS; in ConstructBlob() local
157 ret = HKS_ERROR_INVALID_KEY_FILE; /* keyfile name invalid */ in ConstructBlob()
171 if (ret != HKS_SUCCESS) { in ConstructBlob()
173 return ret; in ConstructBlob()
185 return ret; in ConstructBlob()
220 … int32_t ret = GetPath(path, processName, fileInfo->mainPath.processPath, fileInfo->mainPath.size, in GetFullPath() local
222 HKS_IF_NOT_SUCC_LOGE_RETURN(ret, ret, "get processPath failed, ret = %" LOG_PUBLIC "d.", ret) in GetFullPath()
233 int32_t ret = HksGetStoragePath(HKS_STORAGE_MAIN_PATH, g_keyStoreMainPath, &len); in GetStoreRootPath() local
234 HKS_IF_NOT_SUCC_LOGE_RETURN(ret, ret, "get mainStorage path fail") in GetStoreRootPath()
242 int32_t ret = HksGetStoragePath(HKS_STORAGE_BACKUP_PATH, g_keyStoreBakPath, &len); in GetStoreRootPath() local
[all …]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_auth_mgr.c89 int32_t ret = CertManagerUriDecode(uriObj, (char *)uri->data); in GetAndCheckUriObj() local
90 if (ret != CM_SUCCESS) { in GetAndCheckUriObj()
91 CM_LOG_E("uri decode failed, ret = %d", ret); in GetAndCheckUriObj()
92 return ret; in GetAndCheckUriObj()
134 int32_t ret = UintToString(clientUid, uidStr, MAX_UINT32_LEN); in ConstructToBeAuthedUri() local
135 if (ret != CM_SUCCESS) { in ConstructToBeAuthedUri()
137 return ret; in ConstructToBeAuthedUri()
153 int32_t ret = UintToString(clientUid, uidStr, MAX_UINT32_LEN); in ConstructMacKeyUri() local
154 if (ret != CM_SUCCESS) { in ConstructMacKeyUri()
156 return ret; in ConstructMacKeyUri()
[all …]
Dcert_manager_service.c64 int32_t ret = CmServiceInstallAppCertCheck(&appCertInfo->appCert, &appCertInfo->appCertPwd, in CmServicInstallAppCert() local
66 if (ret != CM_SUCCESS) { in CmServicInstallAppCert()
67 CM_LOG_E("service intall app cert check params failed, ret = %d", ret); in CmServicInstallAppCert()
68 return ret; in CmServicInstallAppCert()
71 ret = CmInstallAppCertPro(context, appCertInfo, certAlias, store, keyUri); in CmServicInstallAppCert()
72 if (ret != CM_SUCCESS) { in CmServicInstallAppCert()
73 CM_LOG_E("CmInstallAppCert fail, ret = %d", ret); in CmServicInstallAppCert()
74 return ret; in CmServicInstallAppCert()
76 return ret; in CmServicInstallAppCert()
83 int32_t ret = CmCheckAndGetCommonUri(context, keyUri, &commonUri); in GetPublicAppCert() local
[all …]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/
Dcm_ipc_service.c42 int32_t ret = CmGetProcessInfoForIPC(cmContext); in GetInputParams() local
43 if (ret != CM_SUCCESS) { in GetInputParams()
44 CM_LOG_E("get ipc info failed, ret = %d", ret); in GetInputParams()
45 return ret; in GetInputParams()
49 ret = CmGetParamSet((struct CmParamSet *)paramSetBlob->data, paramSetBlob->size, paramSet); in GetInputParams()
50 if (ret != CM_SUCCESS) { in GetInputParams()
51 CM_LOG_E("get paramSet failed, ret = %d", ret); in GetInputParams()
52 return ret; in GetInputParams()
55 ret = CmParamSetToParams(*paramSet, params, paramsCount); in GetInputParams()
56 if (ret != CM_SUCCESS) { in GetInputParams()
[all …]
/base/security/certificate_manager/test/unittest/src/
Dcm_user_cert_test.cpp509 int32_t ret; variable
513 ret = CmInstallUserTrustedCert(&userCert[0], &certAlias[0], &certUri);
514 EXPECT_EQ(ret, CM_SUCCESS) << "Normal user cert Install test failed, recode:" << ret;
516 ret = CmUninstallUserTrustedCert(&certUri);
517 EXPECT_EQ(ret, CM_SUCCESS) << "Normal user cert Uninstall test failed, recode:" << ret;
528 int32_t ret; variable
532 ret = CmInstallUserTrustedCert(&userCert[1], &certAlias[1], &certUri);
533 EXPECT_EQ(ret, CM_SUCCESS) << "Normal user cert Install test failed, recode:" << ret;
535 ret = CmUninstallUserTrustedCert(&certUri);
536 EXPECT_EQ(ret, CM_SUCCESS) << "Normal user cert Uninstall test failed, recode:" << ret;
[all …]
/base/startup/init/test/unittest/param/
Ddac_unittest.cpp38 int ret = RegisterSecurityDacOps(&initParamSercurityOps, LABEL_INIT_FOR_INIT); in TestDacInitLocalLabel() local
39 EXPECT_EQ(ret, 0); in TestDacInitLocalLabel()
45 ret = initParamSercurityOps.securityInitLabel(&label, LABEL_INIT_FOR_INIT); in TestDacInitLocalLabel()
46 EXPECT_EQ(ret, 0); in TestDacInitLocalLabel()
47 ret = initParamSercurityOps.securityFreeLabel(&label); in TestDacInitLocalLabel()
48 EXPECT_EQ(ret, 0); in TestDacInitLocalLabel()
54 int ret = RegisterSecurityDacOps(&initParamSercurityOps, LABEL_INIT_FOR_INIT); in TestDacCheckFilePermission() local
55 EXPECT_EQ(ret, 0); in TestDacCheckFilePermission()
60 ret = initParamSercurityOps.securityInitLabel(&label, LABEL_INIT_FOR_INIT); in TestDacCheckFilePermission()
61 EXPECT_EQ(ret, 0); in TestDacCheckFilePermission()
[all …]
Dselinux_unittest.cpp41 int ret = RegisterSecuritySelinuxOps(&initParamSercurityOps, LABEL_INIT_FOR_INIT); in TestSelinuxInitLocalLabel() local
42 EXPECT_EQ(ret, 0); in TestSelinuxInitLocalLabel()
48 ret = initParamSercurityOps.securityInitLabel(&label, LABEL_INIT_FOR_INIT); in TestSelinuxInitLocalLabel()
49 EXPECT_EQ(ret, 0); in TestSelinuxInitLocalLabel()
50 ret = initParamSercurityOps.securityFreeLabel(&label); in TestSelinuxInitLocalLabel()
51 EXPECT_EQ(ret, 0); in TestSelinuxInitLocalLabel()
57 int ret = RegisterSecuritySelinuxOps(&initParamSercurityOps, LABEL_INIT_FOR_INIT); in TestSelinuxCheckFilePermission() local
58 EXPECT_EQ(ret, 0); in TestSelinuxCheckFilePermission()
63 ret = initParamSercurityOps.securityInitLabel(&label, LABEL_INIT_FOR_INIT); in TestSelinuxCheckFilePermission()
64 EXPECT_EQ(ret, 0); in TestSelinuxCheckFilePermission()
[all …]
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/
Dhks_ipc_service.c61 int32_t ret; in HksIpcServiceGenerateKey() local
65 ret = HksGenerateKeyUnpack(srcData, &keyAlias, &inParamSet, &keyOut); in HksIpcServiceGenerateKey()
66 HKS_IF_NOT_SUCC_LOGE_BREAK(ret, "HksGenerateKeyUnpack Ipc fail") in HksIpcServiceGenerateKey()
73 ret = HKS_ERROR_MALLOC_FAIL; in HksIpcServiceGenerateKey()
79 ret = HksGetProcessInfoForIPC(context, &processInfo); in HksIpcServiceGenerateKey()
80 HKS_IF_NOT_SUCC_LOGE_BREAK(ret, "HksGetProcessInfoForIPC fail, ret = %" LOG_PUBLIC "d", ret) in HksIpcServiceGenerateKey()
82 ret = HksServiceGenerateKey(&processInfo, &keyAlias, inParamSet, &keyOut); in HksIpcServiceGenerateKey()
83 HKS_IF_NOT_SUCC_LOGE(ret, "HksServiceGenerateKey fail, ret = %" LOG_PUBLIC "d", ret) in HksIpcServiceGenerateKey()
89 HksSendResponse(context, ret, NULL); in HksIpcServiceGenerateKey()
91 HksSendResponse(context, ret, &keyOut); in HksIpcServiceGenerateKey()
[all …]
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/
Dhks_param_test.cpp67 int32_t ret = HksCheckParamMatch(&baseParam, &otherParam); variable
68 EXPECT_EQ(ret, HKS_ERROR_INVALID_ARGUMENT) << "HksCheckParamMatch failed, ret = " << ret;
81 int32_t ret = HksCheckParamMatch(&baseParam, &otherParam); variable
82 EXPECT_EQ(ret, HKS_ERROR_INVALID_ARGUMENT) << "HksCheckParamMatch failed, ret = " << ret;
95 int32_t ret = HksCheckParamMatch(&baseParam, &otherParam); variable
96 EXPECT_EQ(ret, HKS_ERROR_INVALID_ARGUMENT) << "HksCheckParamMatch failed, ret = " << ret;
113 int32_t ret = HksCheckParamMatch(&baseParam, &otherParam); variable
114 EXPECT_EQ(ret, HKS_ERROR_INVALID_ARGUMENT) << "HksCheckParamMatch failed, ret = " << ret;
131 int32_t ret = HksCheckParamMatch(&baseParam, &otherParam); variable
132 EXPECT_EQ(ret, HKS_ERROR_INVALID_ARGUMENT) << "HksCheckParamMatch failed, ret = " << ret;
[all …]
/base/security/device_auth/frameworks/src/
Dipc_sdk.c52 int32_t ret; in DelIpcCliCallbackCtx() local
58 ret = memcmp(appId, cbCache->appId, strlen(cbCache->appId) + 1); in DelIpcCliCallbackCtx()
59 if (ret == 0) { in DelIpcCliCallbackCtx()
88 int32_t ret = HC_ERR_IPC_BAD_MSG_TYPE; in GetIpcReplyByType() local
96 ret = HC_SUCCESS; in GetIpcReplyByType()
115 ret = HC_ERR_MEMORY_COPY; in GetIpcReplyByType()
121 ret = HC_ERR_IPC_BAD_MSG_TYPE; in GetIpcReplyByType()
126 LOGI("process done, type %d, result %d", type, ret); in GetIpcReplyByType()
133 int32_t ret; in IpcGmRegCallback() local
144 ret = CreateCallCtx(&callCtx, NULL); in IpcGmRegCallback()
[all …]
Dipc_service.c44 int32_t ret; in BindRequestIdWithAppId() local
59 ret = AddReqIdByAppId(appId, requestId); in BindRequestIdWithAppId()
61 return ret; in BindRequestIdWithAppId()
67 int32_t ret; in IpcServiceGmRegCallback() local
74 ret = GetIpcRequestParamByType(ipcParams, paramNum, PARAM_TYPE_APPID, (uint8_t *)&appId, NULL); in IpcServiceGmRegCallback()
75 if (ret != HC_SUCCESS) { in IpcServiceGmRegCallback()
77 return ret; in IpcServiceGmRegCallback()
80ret = GetIpcRequestParamByType(ipcParams, paramNum, PARAM_TYPE_DEV_AUTH_CB, (uint8_t *)&callback, … in IpcServiceGmRegCallback()
81 if (ret != HC_SUCCESS) { in IpcServiceGmRegCallback()
83 return ret; in IpcServiceGmRegCallback()
[all …]
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_bulkcallback_test.cpp79 auto ret = srvClient.SetPortRole(1, 1, 1); in SetUpTestCase() local
81 USB_HILOGI(MODULE_USB_SERVICE, "UsbBulkcallbackTest:: [Device] SetPortRole=%{public}d", ret); in SetUpTestCase()
82 ASSERT_TRUE(ret == 0); in SetUpTestCase()
83 if (ret != 0) { in SetUpTestCase()
116 auto ret = UsbSrvClient.GetDevices(devi); variable
117 EXPECT_TRUE(ret == 0);
124 ret = UsbSrvClient.OpenDevice(device, pipe);
126 __LINE__, ret);
127 EXPECT_TRUE(ret == 0);
132 ret = UsbSrvClient.ClaimInterface(pipe, interface, true);
[all …]
/base/telephony/call_manager/services/call/src/
Dvideo_call_state.cpp93 int ret = TELEPHONY_SUCCESS; in SendUpdateCallMediaModeRequest() local
98 ret = DispatchUpdateVideoRequest(mode); in SendUpdateCallMediaModeRequest()
99 if (ret != TELEPHONY_SUCCESS) { in SendUpdateCallMediaModeRequest()
101 return ret; in SendUpdateCallMediaModeRequest()
107 ret = CALL_ERR_VIDEO_ILLEAGAL_SCENARIO; in SendUpdateCallMediaModeRequest()
118 ret = DispatchUpdateVideoRequest(mode); in SendUpdateCallMediaModeRequest()
119 if (ret != TELEPHONY_SUCCESS) { in SendUpdateCallMediaModeRequest()
121 return ret; in SendUpdateCallMediaModeRequest()
129 return ret; in SendUpdateCallMediaModeRequest()
135 int32_t ret = TELEPHONY_SUCCESS; in RecieveUpdateCallMediaModeRequest() local
[all …]
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/
Dhks_api_test.cpp71 int32_t ret = HksGetSdkVersion(&sdkVer); variable
72 EXPECT_EQ(ret, HKS_SUCCESS) << "HksGetSdkVersion failed, ret = " << ret;
84 int32_t ret = HksAbort(nullptr, nullptr); variable
85 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksAbort failed, ret = " << ret;
96 int32_t ret = HksFinish(nullptr, nullptr, nullptr, nullptr); variable
97 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksFinish failed, ret = " << ret;
108 int32_t ret = HksUpdate(nullptr, nullptr, nullptr, nullptr); variable
109 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksFinish failed, ret = " << ret;
121 int32_t ret = HksValidateCertChain(nullptr, &paramSetOut); variable
122 EXPECT_EQ(ret, HKS_ERROR_NULL_POINTER) << "HksValidateCertChain failed, ret = " << ret;
[all …]
/base/telephony/cellular_call/vendor/ims/test/unittest/ims_service_gtest/
Dims_service_test.cpp91 int32_t ret = TELEPHONY_ERROR; variable
94 EXPECT_EQ(TELEPHONY_SUCCESS, ret);
98 ret = TELEPHONY_SUCCESS;
100 EXPECT_EQ(TELEPHONY_SUCCESS, ret);
102 ret = imsCallPtr_->Dial(callInfoForSlot0_, mode);
103 EXPECT_EQ(TELEPHONY_SUCCESS, ret);
117 int32_t ret = TELEPHONY_ERROR; variable
120 EXPECT_EQ(TELEPHONY_SUCCESS, ret);
124 ret = TELEPHONY_SUCCESS;
126 EXPECT_EQ(TELEPHONY_SUCCESS, ret);
[all …]
/base/telephony/data_storage/common/src/
Drdb_base_helper.cpp40 int ret = IsExistStore(); in Insert() local
41 if (ret == NativeRdb::E_OK) { in Insert()
42 ret = store_->Insert(id, table, initialValues); in Insert()
44 return ret; in Insert()
50 int ret = IsExistStore(); in Update() local
51 if (ret == NativeRdb::E_OK) { in Update()
52 ret = store_->Update(changedRows, table, values, whereClause, whereArgs); in Update()
54 return ret; in Update()
60 int ret = IsExistStore(); in Update() local
61 if (ret == NativeRdb::E_OK) { in Update()
[all …]
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_ecdsa.c45 int32_t ret = EccKeyCheck(key); in HksMbedtlsEcdsaSign() local
46 HKS_IF_NOT_SUCC_RETURN(ret, ret) in HksMbedtlsEcdsaSign()
49 ret = HksMbedtlsEccGetKeyCurveNist((struct KeyMaterialEcc *)(key->data), &curveNist); in HksMbedtlsEcdsaSign()
50 HKS_IF_NOT_SUCC_RETURN(ret, ret) in HksMbedtlsEcdsaSign()
56 ret = HksCtrDrbgSeed(&ctrDrbg, &entropy); in HksMbedtlsEcdsaSign()
57 HKS_IF_NOT_SUCC_RETURN(ret, ret) in HksMbedtlsEcdsaSign()
64 ret = mbedtls_ecp_group_load(&(ctx.grp), curveNist); in HksMbedtlsEcdsaSign()
65 if (ret != HKS_MBEDTLS_SUCCESS) { in HksMbedtlsEcdsaSign()
66 HKS_LOG_E("Mbedtls ecp group load fail! mbedtls ret = 0x%" LOG_PUBLIC "X", ret); in HksMbedtlsEcdsaSign()
70 ret = HksEccKeyMaterialToPri(key, &(ctx.d)); in HksMbedtlsEcdsaSign()
[all …]
Dhks_mbedtls_x25519.c158 int32_t ret = X25519CheckKeyMaterialPubPriSize(priKm); in X25519CheckKeyMaterialSize() local
159 HKS_IF_NOT_SUCC_LOGE_RETURN(ret, ret, "invalid privateKey size") in X25519CheckKeyMaterialSize()
160 ret = X25519CheckKeyMaterialPubPriSize(pubKm); in X25519CheckKeyMaterialSize()
161 HKS_IF_NOT_SUCC_LOGE_RETURN(ret, ret, "invalid publicKey size") in X25519CheckKeyMaterialSize()
163 ret = X25519CheckKeySize(priKey, priKm, false); in X25519CheckKeyMaterialSize()
164 HKS_IF_NOT_SUCC_RETURN(ret, ret) in X25519CheckKeyMaterialSize()
187 …int32_t ret = mbedtls_mpi_write_binary(&(pub->MBEDTLS_PRIVATE(X)), rawMaterial + offset, keyMateri… in X25519SaveKeyMaterial() local
188 if (ret != HKS_MBEDTLS_SUCCESS) { in X25519SaveKeyMaterial()
189 … HKS_LOG_E("Mbedtls mpi write to x25519 public key failed! mbedtls ret = 0x%" LOG_PUBLIC "X", ret); in X25519SaveKeyMaterial()
192 return ret; in X25519SaveKeyMaterial()
[all …]
/base/startup/init/test/unittest/init/
Dinit_reboot_unittest.cpp45 int ret = AddRebootCmdExecutor("reboot_cmd1", rebootCallback); variable
46 EXPECT_EQ(ret, 0);
47 ret = AddRebootCmdExecutor("reboot_cmd2", rebootCallback);
48 EXPECT_EQ(ret, 0);
49 ret = AddRebootCmdExecutor("reboot_cmd3", rebootCallback);
50 EXPECT_EQ(ret, 0);
51ret = AddRebootCmdExecutor("reboot_cmd4", [](int id, const char *name, int argc, const char **argv… in __anon5e0069290202()
55 EXPECT_EQ(ret, 0);
56ret = AddRebootCmdExecutor("reboot_cmd5", [](int id, const char *name, int argc, const char **argv… in __anon5e0069290302()
60 EXPECT_EQ(ret, 0);
[all …]

12345678910>>...65