Home
last modified time | relevance | path

Searched refs:peerDeviceEntry (Results 1 - 3 of 3) sorted by relevance

/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/
H A Dcompatible_auth_sub_session_common.c179 TrustedDeviceEntry *peerDeviceEntry = CreateDeviceEntry(); in AddUpgradeFlagToParams() local
180 if (peerDeviceEntry == NULL) { in AddUpgradeFlagToParams()
186 res = GaGetTrustedDeviceEntryById(osAccountId, peerUdid, true, groupId, peerDeviceEntry); in AddUpgradeFlagToParams()
188 res = GaGetTrustedDeviceEntryById(osAccountId, peerAuthId, false, groupId, peerDeviceEntry); in AddUpgradeFlagToParams()
195 DestroyDeviceEntry(peerDeviceEntry); in AddUpgradeFlagToParams()
198 bool isPeerFromUpgrade = peerDeviceEntry->upgradeFlag == 1; in AddUpgradeFlagToParams()
199 DestroyDeviceEntry(peerDeviceEntry); in AddUpgradeFlagToParams()
/base/security/device_auth/services/identity_manager/src/
H A Didentity_group.c612 static int32_t GeneratePeerKeyAlias(const TrustedDeviceEntry *peerDeviceEntry, Uint8Buff *peerKeyAlias) in GeneratePeerKeyAlias() argument
615 const char *serviceType = StringGet(&peerDeviceEntry->serviceType); in GeneratePeerKeyAlias()
620 KeyAliasType keyTypePeer = (KeyAliasType)peerDeviceEntry->devType; in GeneratePeerKeyAlias()
622 const char *peerAuthId = StringGet(&peerDeviceEntry->authId); in GeneratePeerKeyAlias()
629 if (peerDeviceEntry->upgradeFlag == 1) { in GeneratePeerKeyAlias()
655 const char *groupId, const TrustedDeviceEntry *peerDeviceEntry) in CheckPeerKeyAlias()
660 if (DelDeviceFromDb(osAccountId, groupId, peerDeviceEntry) != HC_SUCCESS) { in CheckPeerKeyAlias()
670 const TrustedDeviceEntry *peerDeviceEntry, const Uint8Buff *sharedKeyAlias) in ComputeAndSavePsk()
680 const char *serviceType = StringGet(&peerDeviceEntry->serviceType); in ComputeAndSavePsk()
693 ret = GeneratePeerKeyAlias(peerDeviceEntry, in ComputeAndSavePsk()
654 CheckPeerKeyAlias(const Uint8Buff *peerKeyAlias, bool isPeerFromUpgrade, int32_t osAccountId, const char *groupId, const TrustedDeviceEntry *peerDeviceEntry) CheckPeerKeyAlias() argument
669 ComputeAndSavePsk(int32_t osAccountId, const char *groupId, const TrustedDeviceEntry *peerDeviceEntry, const Uint8Buff *sharedKeyAlias) ComputeAndSavePsk() argument
[all...]
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
H A Dsave_trusted_info.c459 TrustedDeviceEntry *peerDeviceEntry = GetTrustedDeviceEntryById(params->osAccountId, params->udidPeer, in IsDeviceImportedByCloud() local
461 if (peerDeviceEntry == NULL) { in IsDeviceImportedByCloud()
464 uint8_t source = peerDeviceEntry->source; in IsDeviceImportedByCloud()
465 DestroyDeviceEntry(peerDeviceEntry); in IsDeviceImportedByCloud()

Completed in 5 milliseconds