Home
last modified time | relevance | path

Searched refs:authIdSelf (Results 1 – 21 of 21) sorted by relevance

/ohos5.0/base/security/device_auth/services/legacy/authenticators/inc/account_unrelated/
H A Ddas_task_common.h31 int32_t GetIdPeer(const CJson *in, const char *peerIdKey, const Uint8Buff *authIdSelf, Uint8Buff *a…
32 int32_t GetAndCheckAuthIdPeer(const CJson *in, const Uint8Buff *authIdSelf, const Uint8Buff *authId…
33 int32_t GetAuthIdPeerFromPayload(const CJson *in, const Uint8Buff *authIdSelf, Uint8Buff *authIdPee…
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/iso_protocol_task/
H A Diso_server_protocol_task.c62 … GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_PEER_AUTH_ID, params->baseParams.authIdSelf.val, in PackageServerStartMessage()
63 params->baseParams.authIdSelf.length), res); in PackageServerStartMessage()
90 GOTO_ERR_AND_SET_RET(GetAuthIdPeerFromPayload(in, &(params->baseParams.authIdSelf), in IsoServerStart()
93 GOTO_ERR_AND_SET_RET(GetAndCheckAuthIdPeer(in, &(params->baseParams.authIdSelf), in IsoServerStart()
141 … GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_PEER_AUTH_ID, params->baseParams.authIdSelf.val, in PackDataForCalTokenServer()
142 params->baseParams.authIdSelf.length), res); in PackDataForCalTokenServer()
H A Diso_client_protocol_task.c62 … GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_PEER_AUTH_ID, params->baseParams.authIdSelf.val, in IsoClientStartPackData()
63 params->baseParams.authIdSelf.length), res); in IsoClientStartPackData()
127 … GOTO_ERR_AND_SET_RET(AddByteToJson(payload, FIELD_PEER_AUTH_ID, params->baseParams.authIdSelf.val, in PackDataForCalToken()
128 params->baseParams.authIdSelf.length), res); in PackDataForCalToken()
141 …RETURN_IF_ERR(GetAuthIdPeerFromPayload(in, &(params->baseParams.authIdSelf), &(params->baseParams.… in ParseServerStartMessage()
143 …RETURN_IF_ERR(GetAndCheckAuthIdPeer(in, &(params->baseParams.authIdSelf), &(params->baseParams.aut… in ParseServerStartMessage()
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/common/
H A Ddas_task_common.c463 int32_t GetIdPeer(const CJson *in, const char *peerIdKey, const Uint8Buff *authIdSelf, Uint8Buff *a… in GetIdPeer() argument
484 if ((authIdSelf->length == authIdPeer->length) && in GetIdPeer()
485 memcmp(authIdSelf->val, authIdPeer->val, authIdSelf->length) == 0) { in GetIdPeer()
492 int32_t GetAndCheckAuthIdPeer(const CJson *in, const Uint8Buff *authIdSelf, const Uint8Buff *authId… in GetAndCheckAuthIdPeer() argument
519 if ((authIdSelf->length == authIdPeer->length) && in GetAndCheckAuthIdPeer()
520 memcmp(authIdSelf->val, authIdPeer->val, authIdSelf->length) == EOK) { in GetAndCheckAuthIdPeer()
534 int32_t GetAuthIdPeerFromPayload(const CJson *in, const Uint8Buff *authIdSelf, Uint8Buff *authIdPee… in GetAuthIdPeerFromPayload() argument
541 int res = GetIdPeer(payload, FIELD_PEER_AUTH_ID, authIdSelf, authIdPeer); in GetAuthIdPeerFromPayload()
/ohos5.0/base/security/device_auth/services/protocol/src/iso_protocol/
H A Diso_protocol_common.c86 HcFree(params->authIdSelf.val); in DestroyIsoBaseParams()
87 params->authIdSelf.val = NULL; in DestroyIsoBaseParams()
96 int length = params->randSelf.length + params->randPeer.length + params->authIdSelf.length + in IsoCalSelfToken()
116 …(memcpy_s(messagePeer + usedLen, length - usedLen, params->authIdSelf.val, params->authIdSelf.leng… in IsoCalSelfToken()
121 usedLen += params->authIdSelf.length; in IsoCalSelfToken()
143 params->authIdSelf.length; in IsoCalPeerToken()
169 …(memcpy_s(messageSelf + usedLen, length - usedLen, params->authIdSelf.val, params->authIdSelf.leng… in IsoCalPeerToken()
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/
H A Diso_protocol.c54 Uint8Buff authIdSelf; member
94 …(memcpy_s(message + usedLen, messageLen - usedLen, params->authIdSelf.val, params->authIdSelf.leng… in BuildSelfTokenMessage()
98 usedLen += params->authIdSelf.length; in BuildSelfTokenMessage()
129 …(memcpy_s(message + usedLen, messageLen - usedLen, params->authIdSelf.val, params->authIdSelf.leng… in BuildPeerTokenMessage()
133 usedLen += params->authIdSelf.length; in BuildPeerTokenMessage()
160 params->authIdSelf.length + params->authIdPeer.length + in IsoCalToken()
294 if (AddByteToJson(json, FIELD_AUTH_ID_CLIENT, params->authIdSelf.val, in ClientGenRandomBuildEvent()
295 params->authIdSelf.length) != HC_SUCCESS) { in ClientGenRandomBuildEvent()
393 if (AddByteToJson(json, FIELD_AUTH_ID_SERVER, params->authIdSelf.val, in ServerGenTokenBuildEvent()
394 params->authIdSelf.length) != HC_SUCCESS) { in ServerGenTokenBuildEvent()
[all …]
H A Ddl_speke_protocol.c82 Uint8Buff authIdSelf; member
118 if (AddByteToJson(json, FIELD_AUTH_ID_CLIENT, params->authIdSelf.val, in DlSpekeClientStartReqBuildEvent()
119 params->authIdSelf.length) != HC_SUCCESS) { in DlSpekeClientStartReqBuildEvent()
369 uint32_t sidSelfMsgLen = params->authIdSelf.length + params->innerKeyLen; in CalSidSelf()
375 …if (memcpy_s(sidSelfMsg.val, sidSelfMsg.length, params->authIdSelf.val, params->authIdSelf.length)… in CalSidSelf()
380 …if (memcpy_s(sidSelfMsg.val + params->authIdSelf.length, sidSelfMsg.length - params->authIdSelf.le… in CalSidSelf()
716 if (AddByteToJson(json, FIELD_AUTH_ID_SERVER, params->authIdSelf.val, in DlSpekeServerStartRspBuildEvent()
717 params->authIdSelf.length) != HC_SUCCESS) { in DlSpekeServerStartRspBuildEvent()
1099 ClearFreeUint8Buff(&impl->params.authIdSelf); in DestroyDlSpekeProtocol()
1109 if (DeepCopyUint8Buff(&params->authId, &instance->params.authIdSelf) != HC_SUCCESS) { in BuildDlSpekeProtocolObj()
H A Dec_speke_protocol.c64 Uint8Buff authIdSelf; member
97 if (AddByteToJson(json, FIELD_AUTH_ID_CLIENT, params->authIdSelf.val, in EcSpekeClientStartReqBuildEvent()
98 params->authIdSelf.length) != HC_SUCCESS) { in EcSpekeClientStartReqBuildEvent()
333 uint32_t sidSelfMsgLen = params->authIdSelf.length + EC_SPEKE_EC_KEY_LEN; in CalSidSelf()
339 …if (memcpy_s(sidSelfMsg.val, sidSelfMsg.length, params->authIdSelf.val, params->authIdSelf.length)… in CalSidSelf()
344 …if (memcpy_s(sidSelfMsg.val + params->authIdSelf.length, sidSelfMsg.length - params->authIdSelf.le… in CalSidSelf()
703 if (AddByteToJson(json, FIELD_AUTH_ID_SERVER, params->authIdSelf.val, in EcSpekeServerStartRspBuildEvent()
704 params->authIdSelf.length) != HC_SUCCESS) { in EcSpekeServerStartRspBuildEvent()
1082 ClearFreeUint8Buff(&impl->params.authIdSelf); in DestroyEcSpekeProtocol()
1092 if (DeepCopyUint8Buff(&params->authId, &instance->params.authIdSelf) != HC_SUCCESS) { in BuildEcSpekeProtocolObj()
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_related/auth/iso_auth_task/
H A Diso_auth_task_common.c103 …params->isoBaseParams.authIdSelf.length = params->devIdSelf.length + HcStrlen(params->deviceIdSelf… in FillPayload()
104 … res = InitSingleParam(&params->isoBaseParams.authIdSelf, params->isoBaseParams.authIdSelf.length); in FillPayload()
108 if (memcpy_s(params->isoBaseParams.authIdSelf.val, params->isoBaseParams.authIdSelf.length, in FillPayload()
113 if (memcpy_s(params->isoBaseParams.authIdSelf.val + params->devIdSelf.length, in FillPayload()
114 params->isoBaseParams.authIdSelf.length - params->devIdSelf.length, in FillPayload()
H A Diso_auth_server_task.c74 … params->isoBaseParams.authIdSelf.val, params->isoBaseParams.authIdSelf.length) != CLIB_SUCCESS) { in AddGetTokenDataToJson()
H A Diso_auth_client_task.c54 … params->isoBaseParams.authIdSelf.val, params->isoBaseParams.authIdSelf.length) != CLIB_SUCCESS) { in AddBeginDataToJson()
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
H A Dpub_key_exchange.c42 Uint8Buff authIdSelf; member
184 const Uint8Buff *authId = isSelf ? &(params->authIdSelf) : &(params->authIdPeer); in GenerateKeyAlias()
241 ExtraInfo exInfo = { params->authIdSelf, -1, -1 }; in ExportSelfPubKey()
279 if (AddByteToJson(json, FIELD_AUTH_ID_CLIENT, params->authIdSelf.val, in ClientSendPkInfoBuildEvent()
280 params->authIdSelf.length) != HC_SUCCESS) { in ClientSendPkInfoBuildEvent()
474 if (AddByteToJson(json, FIELD_AUTH_ID_SERVER, params->authIdSelf.val, in ServerSendAuthCodeBuildEvent()
475 params->authIdSelf.length) != HC_SUCCESS) { in ServerSendAuthCodeBuildEvent()
684 ClearFreeUint8Buff(&impl->params.authIdSelf); in DestroyPubKeyExchangeCmd()
703 if (DeepCopyUint8Buff(&params->authId, &(instance->params.authIdSelf)) != HC_SUCCESS) { in InitPubkeyExchangeCmd()
H A Dauth_code_import.c44 Uint8Buff authIdSelf; member
200 if (AddByteToJson(json, FIELD_AUTH_ID_CLIENT, params->authIdSelf.val, in ClientSendDevInfoBuildEvent()
201 params->authIdSelf.length) != HC_SUCCESS) { in ClientSendDevInfoBuildEvent()
298 if (AddByteToJson(json, FIELD_AUTH_ID_SERVER, params->authIdSelf.val, in ServerSendAuthCodeBuildEvent()
299 params->authIdSelf.length) != HC_SUCCESS) { in ServerSendAuthCodeBuildEvent()
518 ClearFreeUint8Buff(&impl->params.authIdSelf); in DestroyAuthCodeImportCmd()
537 if (DeepCopyUint8Buff(&params->authId, &(instance->params.authIdSelf)) != HC_SUCCESS) { in InitAuthCodeImportCmd()
H A Dsave_trusted_info.c58 char *authIdSelf; member
187 if (AddStringToJson(json, FIELD_AUTH_ID_CLIENT, params->authIdSelf) != HC_SUCCESS) { in ClientSendTrustedInfoBuildEvent()
327 if (!StringSetPointer(&devParams->authId, params->authIdSelf)) { in GenerateSelfDevParams()
532 if (AddStringToJson(json, FIELD_AUTH_ID_SERVER, params->authIdSelf) != HC_SUCCESS) { in ServerSendTrustedInfoBuildEvent()
792 HcFree(impl->params.authIdSelf); in DestroySaveTrustedInfoCmd()
793 impl->params.authIdSelf = NULL; in DestroySaveTrustedInfoCmd()
819 if (DeepCopyString(params->authId, &(instance->params.authIdSelf)) != HC_SUCCESS) { in InitSaveTrustedInfoCmd()
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/iso_task_common/
H A Diso_task_common.c352 params->baseParams.authIdSelf.length = authIdLen; in FillAuthId()
353 … params->baseParams.authIdSelf.val = (uint8_t *)HcMalloc(params->baseParams.authIdSelf.length, 0); in FillAuthId()
354 if (params->baseParams.authIdSelf.val == NULL) { in FillAuthId()
358 if (memcpy_s(params->baseParams.authIdSelf.val, params->baseParams.authIdSelf.length, in FillAuthId()
625 authId.val = params->baseParams.authIdSelf.val; in GenerateKeyAliasInIso()
626 authId.length = params->baseParams.authIdSelf.length; in GenerateKeyAliasInIso()
/ohos5.0/base/security/device_auth/services/protocol/inc/iso_protocol/
H A Diso_protocol_common.h32 Uint8Buff authIdSelf; // need malloc by caller member
/ohos5.0/base/security/device_auth/services/key_agree_sdk/src/
H A Dkey_agree_session.c48 static int32_t GetIdPeer(const CJson *in, const char *peerIdKey, const Uint8Buff *authIdSelf, Uint8… in GetIdPeer() argument
69 if ((authIdSelf->length == authIdPeer->length) && in GetIdPeer()
70 memcmp(authIdSelf->val, authIdPeer->val, authIdSelf->length) == 0) { in GetIdPeer()
260 int32_t GetAuthIdPeerFromPayload(const CJson *in, const Uint8Buff *authIdSelf, Uint8Buff *authIdPee… in GetAuthIdPeerFromPayload() argument
267 int32_t res = GetIdPeer(payload, FIELD_PEER_AUTH_ID, authIdSelf, authIdPeer); in GetAuthIdPeerFromPayload()
/ohos5.0/base/security/device_auth/test/fuzztest/session_manager/session/v2/expand_sub_session/expand_process_lib/savetrustedinfo_fuzzer/
H A Dsavetrustedinfo_fuzzer.cpp63 const char *authIdSelf; member
116 if (!StringSetPointer(&devParams->authId, params->authIdSelf)) { in GenerateSelfDevParams()
/ohos5.0/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/expand_sub_session/expand_process_lib/
H A Dsave_trusted_info_test.cpp67 const char *authIdSelf; member
120 if (!StringSetPointer(&devParams->authId, params->authIdSelf)) { in GenerateSelfDevParams()
/ohos5.0/base/security/device_auth/test/fuzztest/authenticators/account_related/auth/isoauthtask_fuzzer/
H A Disoauthtask_fuzzer.cpp451 HcFree(innerTask->params.isoBaseParams.authIdSelf.val); in IsoAuthTaskTest19()
452 innerTask->params.isoBaseParams.authIdSelf.val = nullptr; in IsoAuthTaskTest19()
/ohos5.0/base/security/device_auth/test/unittest/deviceauth/source/
H A Diso_auth_task_test.cpp612 HcFree(innerTask->params.isoBaseParams.authIdSelf.val);
613 innerTask->params.isoBaseParams.authIdSelf.val = nullptr;