Searched refs:GOTO_IF_ERR (Results 1 – 5 of 5) sorted by relevance
/base/security/device_auth/services/authenticators/src/account_related/auth/pake_v2_auth_task/ |
D | pake_v2_auth_client_task.c | 55 GOTO_IF_ERR(GetIntFromJson(in, FIELD_AUTH_FORM, &innerTask->params.authForm)); in AsyAuthClientStepOne() 56 GOTO_IF_ERR(GetIntFromJson(in, FIELD_CREDENTIAL_TYPE, &innerTask->params.credentialType)); in AsyAuthClientStepOne() 58 GOTO_IF_ERR(AddIntToJson(sendToPeer, FIELD_AUTH_FORM, innerTask->params.authForm)); in AsyAuthClientStepOne() 59 …GOTO_IF_ERR(AddStringToJson(sendToPeer, FIELD_USER_ID, (const char *)innerTask->params.userIdSelf)… in AsyAuthClientStepOne() 60 GOTO_IF_ERR(AddIntToJson(sendToPeer, FIELD_STEP, CMD_PAKE_AUTH_MAIN_ONE)); in AsyAuthClientStepOne() 61 …GOTO_IF_ERR(AddStringToJson(sendToPeer, FIELD_DEVICE_ID, (const char *)innerTask->params.deviceIdS… in AsyAuthClientStepOne() 62 …GOTO_IF_ERR(AddStringToJson(sendToPeer, FIELD_DEV_ID, (const char *)innerTask->params.devIdSelf.va… in AsyAuthClientStepOne() 64 GOTO_IF_ERR(AddIntToJson(data, FIELD_AUTH_KEY_ALG_ENCODE, ALG_ECC)); in AsyAuthClientStepOne() 65 GOTO_IF_ERR(AddIntToJson(data, FIELD_CREDENTIAL_TYPE, innerTask->params.credentialType)); in AsyAuthClientStepOne() 66 …GOTO_IF_ERR(AddStringToJson(data, FIELD_AUTH_PK_INFO, (const char *)innerTask->params.pkInfoSelf.v… in AsyAuthClientStepOne() [all …]
|
D | pake_v2_auth_server_task.c | 122 GOTO_IF_ERR(GetIntFromJson(in, FIELD_AUTH_FORM, &innerTask->params.authForm)); in AsyAuthServerStepOne() 129 GOTO_IF_ERR(strcpy_s((char *)innerTask->params.userIdPeer, userIdPeerLen, userIdPeer)); in AsyAuthServerStepOne() 130 GOTO_IF_ERR(ExtractPeerDeviceId(&innerTask->params, in)); in AsyAuthServerStepOne() 131 GOTO_IF_ERR(ExtractPeerDevId(&innerTask->params, in)); in AsyAuthServerStepOne() 133 GOTO_IF_ERR(GetIntFromJson(in, FIELD_CREDENTIAL_TYPE, &innerTask->params.credentialType)); in AsyAuthServerStepOne() 134 GOTO_IF_ERR(GetIntFromJson(in, FIELD_AUTH_KEY_ALG_ENCODE, &innerTask->params.authKeyAlgEncode)); in AsyAuthServerStepOne() 135 GOTO_IF_ERR(GetPkInfoPeer(&innerTask->params, in)); in AsyAuthServerStepOne() 136 GOTO_IF_ERR(GetByteFromJson(in, FIELD_AUTH_PK_INFO_SIGN, innerTask->params.pkInfoSignPeer.val, in AsyAuthServerStepOne() 144 GOTO_IF_ERR(DealAsyStepOneData(innerTask, in)); in AsyAuthServerStepOne() 145 GOTO_IF_ERR(PrepareAsyServerStepOneData(innerTask, in, out)); in AsyAuthServerStepOne() [all …]
|
D | pake_v2_auth_task_common.c | 405 GOTO_IF_ERR(GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, ¶ms->osAccountId)); in InitPakeAuthParams() 406 GOTO_IF_ERR(InitPakeV2BaseParams(¶ms->pakeParams)); in InitPakeAuthParams() 407 GOTO_IF_ERR(InitSingleParam(¶ms->pakeParams.epkPeer, P256_PUBLIC_SIZE)); in InitPakeAuthParams() 408 GOTO_IF_ERR(InitSingleParam(¶ms->pkInfoSignSelf, SIGNATURE_SIZE)); in InitPakeAuthParams() 409 GOTO_IF_ERR(InitSingleParam(¶ms->pkInfoSignPeer, SIGNATURE_SIZE)); in InitPakeAuthParams() 410 GOTO_IF_ERR(InitSingleParam(¶ms->pakeParams.idSelf, deviceIdLen + 1)); in InitPakeAuthParams() 411 GOTO_IF_ERR(ExtractSelfDeviceId(params, in, true)); in InitPakeAuthParams() 412 GOTO_IF_ERR(ExtractSelfDevId(params, in)); in InitPakeAuthParams() 415 GOTO_IF_ERR(FillUserIdForAuth(in, params)); in InitPakeAuthParams() 416 GOTO_IF_ERR(GetBoolFromJson(in, FIELD_IS_CLIENT, ¶ms->pakeParams.isClient)); in InitPakeAuthParams() [all …]
|
/base/security/device_auth/services/privacy_enhancement/src/ |
D | pseudonym_manager.c | 116 GOTO_IF_ERR(DeepCopyString(pseudonymId, &pseudonymInfoEntry->pseudonymId)); in GeneratePseudonymInfoFromJson() 123 GOTO_IF_ERR(DeepCopyString(indexKey, &pseudonymInfoEntry->indexKey)); in GeneratePseudonymInfoFromJson() 130 GOTO_IF_ERR(DeepCopyString(realInfo, &pseudonymInfoEntry->realInfo)); in GeneratePseudonymInfoFromJson() 137 GOTO_IF_ERR(DeepCopyString(deviceId, &pseudonymInfoEntry->deviceId)); in GeneratePseudonymInfoFromJson() 613 GOTO_IF_ERR(DeepCopyString(pseudonymId, &pseudonymInfoEntry->pseudonymId)); in BuildPseudonymInfoEntry() 614 GOTO_IF_ERR(DeepCopyString(realInfo, &pseudonymInfoEntry->realInfo)); in BuildPseudonymInfoEntry() 615 GOTO_IF_ERR(DeepCopyString(deviceId, &pseudonymInfoEntry->deviceId)); in BuildPseudonymInfoEntry() 616 GOTO_IF_ERR(DeepCopyString(indexKey, &pseudonymInfoEntry->indexKey)); in BuildPseudonymInfoEntry()
|
/base/security/device_auth/services/frameworks/inc/ |
D | common_defs.h | 197 #define GOTO_IF_ERR(x) do { \ macro
|