Home
last modified time | relevance | path

Searched refs:protocolType (Results 1 - 20 of 20) sorted by relevance

/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/
H A Dauth_sub_session.c30 int32_t protocolType; member
51 static const ProtocolComponent *GetProtocolComponent(int32_t protocolType) in GetProtocolComponent() argument
54 if (PROTOCOL_COMPONENT_LIB[i].protocolType == protocolType) { in GetProtocolComponent()
144 int32_t CreateAuthSubSession(int32_t protocolType, void *params, bool isClient, AuthSubSession **returnObj) in CreateAuthSubSession() argument
150 const ProtocolComponent *component = GetProtocolComponent(protocolType); in CreateAuthSubSession()
152 LOGE("no protocol component found. type = %d.", protocolType); in CreateAuthSubSession()
167 impl->base.protocolType = protocolType; in CreateAuthSubSession()
181 bool IsProtocolSupport(int32_t protocolType) in IsProtocolSupport() argument
[all...]
/base/security/device_auth/services/mk_agree/src/mock/
H A Dmk_agree_task_mock.c19 int32_t CreateMkAgreeTask(int protocolType, const CJson *in, MkAgreeTaskBase **returnTask) in CreateMkAgreeTask() argument
21 (void)protocolType; in CreateMkAgreeTask()
/base/security/device_auth/services/session_manager/inc/session/v2/auth_sub_session/
H A Dauth_sub_session.h30 int32_t protocolType; member
45 bool IsProtocolSupport(int32_t protocolType);
46 int32_t CreateAuthSubSession(int32_t protocolType, void *params, bool isClient, AuthSubSession **returnObj);
/base/security/device_auth/services/creds_manager/src/
H A Dcreds_manager.c154 const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByUrl()
166 authIdentityTest->getSharedSecretByUrl(in, presharedUrl, protocolType, sharedSecret); in GetSharedSecretByUrl()
172 authIdentityTest->getSharedSecretByUrl(in, presharedUrl, protocolType, sharedSecret); in GetSharedSecretByUrl()
181 return authIdentity->getSharedSecretByUrl(in, presharedUrl, protocolType, sharedSecret); in GetSharedSecretByUrl()
213 const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByPeerCert()
225 authIdentityTest->getSharedSecretByPeerCert(in, peerCertInfo, protocolType, sharedSecret); in GetSharedSecretByPeerCert()
231 authIdentityTest->getSharedSecretByPeerCert(in, peerCertInfo, protocolType, sharedSecret); in GetSharedSecretByPeerCert()
238 return authIdentity->getSharedSecretByPeerCert(in, peerCertInfo, protocolType, sharedSecret); in GetSharedSecretByPeerCert()
153 GetSharedSecretByUrl( const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByUrl() argument
212 GetSharedSecretByPeerCert( const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByPeerCert() argument
/base/security/device_auth/services/creds_manager/inc/
H A Dcreds_manager.h30 const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret);
33 const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret);
/base/security/device_auth/services/identity_manager/src/
H A Didentity_pin.c29 dlSpekeEntity->protocolType = ALG_DL_SPEKE; in SetDlSpekeProtocol()
51 isoEntity->protocolType = ALG_ISO; in SetIsoProtocol()
99 ecSpekeEntity->protocolType = ALG_EC_SPEKE; in SetProtocolsForPinType()
126 ecSpekeEntity->protocolType = ALG_EC_SPEKE; in SetProtocolsForDirectAuth()
341 const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByUrl()
348 if (protocolType == ALG_ISO) { in GetSharedSecretByUrl()
369 const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByPeerCert()
374 (void)protocolType; in GetSharedSecretByPeerCert()
340 GetSharedSecretByUrl( const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByUrl() argument
368 GetSharedSecretByPeerCert( const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByPeerCert() argument
H A Didentity_p2p.c28 ecSpekeEntity->protocolType = ALG_EC_SPEKE; in SetProtocolsToIdentityInfo()
283 const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByUrl()
285 (void)protocolType; in GetSharedSecretByUrl()
334 const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByPeerCert()
339 (void)protocolType; in GetSharedSecretByPeerCert()
282 GetSharedSecretByUrl( const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByUrl() argument
333 GetSharedSecretByPeerCert( const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByPeerCert() argument
H A Didentity_group.c114 entity->protocolType = ALG_EC_SPEKE; in SetProtocolsToIdentityInfo()
126 entity->protocolType = ALG_ISO; in SetProtocolsToIdentityInfo()
822 const CJson *in, const CJson *urlJson, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretForP2p()
830 if (protocolType == ALG_ISO) { in GetSharedSecretForP2p()
841 const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByUrl()
864 ret = GetSharedSecretForP2p(in, urlJson, protocolType, sharedSecret); in GetSharedSecretByUrl()
867 if (protocolType != ALG_ISO) { in GetSharedSecretByUrl()
909 const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByPeerCert()
915 if (protocolType != ALG_EC_SPEKE) { in GetSharedSecretByPeerCert()
821 GetSharedSecretForP2p( const CJson *in, const CJson *urlJson, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretForP2p() argument
840 GetSharedSecretByUrl( const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByUrl() argument
908 GetSharedSecretByPeerCert( const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByPeerCert() argument
H A Dcert_operation.c41 entity->protocolType = ALG_ISO; in SetProtocolsForUidType()
424 ecSpekeEntity->protocolType = ALG_EC_SPEKE; in GetAccountAsymIdentityInfo()
/base/security/device_auth/services/identity_manager/inc/
H A Didentity_manager.h46 const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret);
49 const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret);
H A Didentity_defines.h90 ProtocolAlgType protocolType; member
/base/security/device_auth/services/legacy/authenticators/inc/account_related/
H A Daccount_version_util.h48 ProtocolType protocolType; member
/base/security/device_auth/services/mk_agree/inc/
H A Dmk_agree_task.h69 int32_t CreateMkAgreeTask(int protocolType, const CJson *in, MkAgreeTaskBase **returnTask);
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/common/
H A Ddas_version_util.c305 PakeAlgType GetSupportedPakeAlg(VersionStruct *curVersion, ProtocolType protocolType) in GetSupportedPakeAlg() argument
308 if (protocolType == PAKE_V2) { in GetSupportedPakeAlg()
311 } else if (protocolType == PAKE_V1) { in GetSupportedPakeAlg()
315 LOGE("Invalid protocolType: %d.", protocolType); in GetSupportedPakeAlg()
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/
H A Ddas_task_main.c192 ProtocolType protocolType = GetPrototolType(&(task->versionInfo.curVersion), task->versionInfo.opCode); in NegotiateAndProcessTask() local
193 LOGI("Client select protocolType: %d", protocolType); in NegotiateAndProcessTask()
200 if (g_taskTypeToProtocolType[temp->getTaskType(temp)] == protocolType) { in NegotiateAndProcessTask()
317 LOGE("Create subTask failed, protocolType: %d.", temp->type); in CreateMultiSubTask()
343 ProtocolType protocolType = GetPrototolType(&(task->versionInfo.curVersion), task->versionInfo.opCode); in CreateSingleSubTask() local
344 LOGI("Server select protocolType: %d", protocolType); in CreateSingleSubTask()
349 if (((DasProtocolEntity *)(*ptr))->type == protocolType) { in CreateSingleSubTask()
351 if (protocolType in CreateSingleSubTask()
[all...]
/base/security/device_auth/services/session_manager/src/session/v2/
H A Ddev_session_v2.c185 int32_t credType = (impl->protocolEntity.protocolType == ALG_EC_SPEKE ? ASYMMETRIC_CRED : SYMMETRIC_CRED); in CmdSaveTrustedInfoGenerator()
347 if (IsProtocolSupport(entity->protocolType)) { in RemoveUnsupportedProtocols()
351 LOGI("remove unsupported protocol from credential information. [ProtocolType]: %d", entity->protocolType); in RemoveUnsupportedProtocols()
464 if (AddIntToJson(ability, FIELD_PROTOCOL, entity->protocolType) != HC_SUCCESS) { in AddCredAbilityToArray()
935 if (AddIntToJson(eventData, FIELD_PROTOCOL, authSubSession->protocolType) != HC_SUCCESS) { in AddAuthMsgToSessionMsg()
1337 if (entity->protocolType == ALG_EC_SPEKE) { in AddAuthSubSessionToVec()
1339 } else if (entity->protocolType == ALG_DL_SPEKE) { in AddAuthSubSessionToVec()
1435 impl->protocolEntity.protocolType, psk); in GetSharedSecret()
1446 res = GetSharedSecretByPeerCert(impl->context, &peerCert, impl->protocolEntity.protocolType, psk); in GetSharedSecret()
1651 if (protocol != (int32_t)selfProtocolEntity->protocolType) { in ProtocolEntityNegotiate()
1774 GetAlgTypeByProtocolType(int32_t protocolType) GetAlgTypeByProtocolType() argument
1924 int32_t protocolType; ProcAuthEventInner() local
[all...]
/base/security/device_auth/services/legacy/authenticators/inc/account_unrelated/
H A Ddas_version_util.h78 PakeAlgType GetSupportedPakeAlg(VersionStruct *curVersion, ProtocolType protocolType);
/base/security/device_auth/services/key_agree_sdk/src/
H A Dkey_agree_session.c858 KeyAgreeProtocol protocolType = GetKegAgreeProtocolType(&(spekeSession->versionInfo.curVersion)); in ProcessProtocolConfirm() local
859 if (protocolType == KEYAGREE_PROTOCOL_ANY) { in ProcessProtocolConfirm()
863 res = InitSpekeSession(spekeSession, protocolType); in ProcessProtocolConfirm()
/base/security/device_auth/test/unittest/deviceauth/source/
H A Ddeviceauth_interface_test.cpp1155 ProtocolType protocolType = GetPrototolType(&version, CODE_NULL); in HWTEST_F() local
1156 ASSERT_EQ(protocolType, PROTOCOL_TYPE_NONE); in HWTEST_F()
1158 protocolType = GetPrototolType(&version, AUTHENTICATE); in HWTEST_F()
1159 ASSERT_EQ(protocolType, PROTOCOL_TYPE_NONE); in HWTEST_F()
1160 protocolType = GetPrototolType(&version, OP_BIND); in HWTEST_F()
1161 ASSERT_EQ(protocolType, PAKE_V1); in HWTEST_F()
/base/security/device_auth/services/mk_agree/src/
H A Dmk_agree_task.c655 int32_t CreateMkAgreeTask(int protocolType, const CJson *in, MkAgreeTaskBase **returnTask) in CreateMkAgreeTask() argument
667 switch (protocolType) { in CreateMkAgreeTask()

Completed in 17 milliseconds