/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/ |
H A D | auth_sub_session.c | 30 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 D | mk_agree_task_mock.c | 19 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 D | auth_sub_session.h | 30 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 D | creds_manager.c | 154 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 D | creds_manager.h | 30 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 D | identity_pin.c | 29 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 D | identity_p2p.c | 28 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 D | identity_group.c | 114 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 D | cert_operation.c | 41 entity->protocolType = ALG_ISO; in SetProtocolsForUidType() 424 ecSpekeEntity->protocolType = ALG_EC_SPEKE; in GetAccountAsymIdentityInfo()
|
/base/security/device_auth/services/identity_manager/inc/ |
H A D | identity_manager.h | 46 const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret); 49 const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret);
|
H A D | identity_defines.h | 90 ProtocolAlgType protocolType; member
|
/base/security/device_auth/services/legacy/authenticators/inc/account_related/ |
H A D | account_version_util.h | 48 ProtocolType protocolType; member
|
/base/security/device_auth/services/mk_agree/inc/ |
H A D | mk_agree_task.h | 69 int32_t CreateMkAgreeTask(int protocolType, const CJson *in, MkAgreeTaskBase **returnTask);
|
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/common/ |
H A D | das_version_util.c | 305 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 D | das_task_main.c | 192 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 D | dev_session_v2.c | 185 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 D | das_version_util.h | 78 PakeAlgType GetSupportedPakeAlg(VersionStruct *curVersion, ProtocolType protocolType);
|
/base/security/device_auth/services/key_agree_sdk/src/ |
H A D | key_agree_session.c | 858 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 D | deviceauth_interface_test.cpp | 1155 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 D | mk_agree_task.c | 655 int32_t CreateMkAgreeTask(int protocolType, const CJson *in, MkAgreeTaskBase **returnTask) in CreateMkAgreeTask() argument 667 switch (protocolType) { in CreateMkAgreeTask()
|