Home
last modified time | relevance | path

Searched refs:GOTO_IF_ERR (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_related/auth/pake_v2_auth_task/
H A Dpake_v2_auth_client_task.c69 GOTO_IF_ERR(AddObjToJson(sendToPeer, FIELD_DATA, data)); in AsyAuthClientStepOne()
148 GOTO_IF_ERR(GetPkInfoPeer(&innerTask->params, in)); in AsyAuthClientStepTwo()
149 GOTO_IF_ERR(ExtractPeerDeviceId(&innerTask->params, in)); in AsyAuthClientStepTwo()
150 GOTO_IF_ERR(ExtractPeerDevId(&innerTask->params, in)); in AsyAuthClientStepTwo()
151 GOTO_IF_ERR(ExtractPakePeerId(&innerTask->params, in)); in AsyAuthClientStepTwo()
165 GOTO_IF_ERR(DealAsyStepTwoData(innerTask)); in AsyAuthClientStepTwo()
167 GOTO_IF_ERR(PrepareAsyClientStepTwoData(innerTask, out)); in AsyAuthClientStepTwo()
194 GOTO_IF_ERR(AddByteToJson(sendToSelf, in SendFinalToOut()
218 GOTO_IF_ERR(GetByteFromJson(in, FIELD_KCF_DATA, in AsyAuthClientStepThree()
220 GOTO_IF_ERR(DealAsyStepThreeData(&innerTask->params)); in AsyAuthClientStepThree()
[all …]
H A Dpake_v2_auth_server_task.c130 GOTO_IF_ERR(ExtractPeerDeviceId(&innerTask->params, in)); in AsyAuthServerStepOne()
131 GOTO_IF_ERR(ExtractPeerDevId(&innerTask->params, in)); in AsyAuthServerStepOne()
135 GOTO_IF_ERR(GetPkInfoPeer(&innerTask->params, in)); in AsyAuthServerStepOne()
144 GOTO_IF_ERR(DealAsyStepOneData(innerTask)); in AsyAuthServerStepOne()
185 GOTO_IF_ERR(AddByteToJson(sendToSelf, FIELD_SESSION_KEY, in SendFinalToOut()
194 GOTO_IF_ERR(AddByteToJson(sendToPeerData, in SendFinalToOut()
220 GOTO_IF_ERR(GetByteFromJson(in, in AsyAuthServerStepTwo()
222 GOTO_IF_ERR(GetByteFromJson(in, in AsyAuthServerStepTwo()
224 GOTO_IF_ERR(ExtractPakePeerId(&innerTask->params, in)); in AsyAuthServerStepTwo()
225 GOTO_IF_ERR(DealAsyStepTwoData(innerTask)); in AsyAuthServerStepTwo()
[all …]
H A Dpake_v2_auth_task_common.c420 GOTO_IF_ERR(GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, &params->osAccountId)); in InitPakeAuthParams()
421 GOTO_IF_ERR(InitPakeV2BaseParams(params->osAccountId, &params->pakeParams)); in InitPakeAuthParams()
422 GOTO_IF_ERR(InitSingleParam(&params->pakeParams.epkPeer, P256_PUBLIC_SIZE)); in InitPakeAuthParams()
423 GOTO_IF_ERR(InitSingleParam(&params->pkInfoSignSelf, SIGNATURE_SIZE)); in InitPakeAuthParams()
424 GOTO_IF_ERR(InitSingleParam(&params->pkInfoSignPeer, SIGNATURE_SIZE)); in InitPakeAuthParams()
425 GOTO_IF_ERR(InitSingleParam(&params->pakeParams.idSelf, deviceIdLen + 1)); in InitPakeAuthParams()
426 GOTO_IF_ERR(ExtractSelfDeviceId(params, in, true)); in InitPakeAuthParams()
427 GOTO_IF_ERR(ExtractSelfDevId(params, in)); in InitPakeAuthParams()
430 GOTO_IF_ERR(FillUserIdForAuth(in, params)); in InitPakeAuthParams()
431 GOTO_IF_ERR(GetBoolFromJson(in, FIELD_IS_CLIENT, &params->pakeParams.isClient)); in InitPakeAuthParams()
[all …]
/ohos5.0/base/security/device_auth/services/privacy_enhancement/src/
H A Dpseudonym_manager.c118 GOTO_IF_ERR(DeepCopyString(pseudonymId, &pseudonymInfoEntry->pseudonymId)); in GeneratePseudonymInfoFromJson()
125 GOTO_IF_ERR(DeepCopyString(indexKey, &pseudonymInfoEntry->indexKey)); in GeneratePseudonymInfoFromJson()
132 GOTO_IF_ERR(DeepCopyString(realInfo, &pseudonymInfoEntry->realInfo)); in GeneratePseudonymInfoFromJson()
139 GOTO_IF_ERR(DeepCopyString(deviceId, &pseudonymInfoEntry->deviceId)); in GeneratePseudonymInfoFromJson()
701 GOTO_IF_ERR(DeepCopyString(pseudonymId, &pseudonymInfoEntry->pseudonymId)); in BuildPseudonymInfoEntry()
702 GOTO_IF_ERR(DeepCopyString(realInfo, &pseudonymInfoEntry->realInfo)); in BuildPseudonymInfoEntry()
703 GOTO_IF_ERR(DeepCopyString(deviceId, &pseudonymInfoEntry->deviceId)); in BuildPseudonymInfoEntry()
704 GOTO_IF_ERR(DeepCopyString(indexKey, &pseudonymInfoEntry->indexKey)); in BuildPseudonymInfoEntry()
/ohos5.0/base/security/device_auth/services/frameworks/inc/
H A Dcommon_defs.h211 #define GOTO_IF_ERR(x) do { \ macro