Home
last modified time | relevance | path

Searched refs:peerDeviceId (Results 1 – 15 of 15) sorted by relevance

/base/security/device_auth/services/mk_agree/src/mock/
Dkey_manager_mock.c24 int32_t GenerateMk(const char *peerDeviceId, const Uint8Buff *peerPubKey) in GenerateMk() argument
26 (void)peerDeviceId; in GenerateMk()
31 int32_t DeleteMk(const char *peerDeviceId) in DeleteMk() argument
33 (void)peerDeviceId; in DeleteMk()
37 int32_t GeneratePseudonymPsk(const char *peerDeviceId, const Uint8Buff *salt) in GeneratePseudonymPsk() argument
39 (void)peerDeviceId; in GeneratePseudonymPsk()
44 int32_t DeletePseudonymPsk(const char *peerDeviceId) in DeletePseudonymPsk() argument
46 (void)peerDeviceId; in DeletePseudonymPsk()
50 int32_t GenerateAndSavePseudonymId(int32_t osAccountId, const char *peerDeviceId, const PseudonymKe… in GenerateAndSavePseudonymId() argument
54 (void)peerDeviceId; in GenerateAndSavePseudonymId()
/base/security/device_auth/services/mk_agree/inc/
Dkey_manager.h31 int32_t GenerateMk(const char *peerDeviceId, const Uint8Buff *peerPubKey);
32 int32_t DeleteMk(const char *peerDeviceId);
33 int32_t GeneratePseudonymPsk(const char *peerDeviceId, const Uint8Buff *salt);
34 int32_t DeletePseudonymPsk(const char *peerDeviceId);
35 int32_t GenerateAndSavePseudonymId(int32_t osAccountId, const char *peerDeviceId, const PseudonymKe…
/base/security/device_auth/services/mk_agree/src/
Dkey_manager.c118 static int32_t GenerateMkAlias(const char *peerDeviceId, Uint8Buff *keyAlias) in GenerateMkAlias() argument
120 Uint8Buff peerDevIdBuff = { (uint8_t *)peerDeviceId, HcStrlen(peerDeviceId) }; in GenerateMkAlias()
135 static int32_t GeneratePseudonymPskAlias(const char *peerDeviceId, Uint8Buff *keyAlias) in GeneratePseudonymPskAlias() argument
139 Uint8Buff peerDevIdBuff = { (uint8_t *)peerDeviceId, HcStrlen(peerDeviceId) }; in GeneratePseudonymPskAlias()
196 int32_t GenerateMk(const char *peerDeviceId, const Uint8Buff *peerPubKey) in GenerateMk() argument
198 if (peerDeviceId == NULL || peerPubKey == NULL) { in GenerateMk()
204 int32_t res = GenerateMkAlias(peerDeviceId, &mkAliasBuff); in GenerateMk()
228 int32_t DeleteMk(const char *peerDeviceId) in DeleteMk() argument
230 if (peerDeviceId == NULL) { in DeleteMk()
236 int32_t res = GenerateMkAlias(peerDeviceId, &mkAliasBuff); in DeleteMk()
[all …]
/base/security/device_auth/test/fuzztest/group_manage/getrelatedgroups_fuzzer/
Dgetrelatedgroups_fuzzer.cpp33 std::string peerDeviceId(reinterpret_cast<const char *>(data), size); in FuzzDoGetRelatedGroups()
36 …gmInstance->getRelatedGroups(*osAccountId, appId.c_str(), peerDeviceId.c_str(), &outGroups, &group… in FuzzDoGetRelatedGroups()
/base/security/device_auth/services/creds_manager/src/
Dcreds_operation_utils.c170 const char *peerDeviceId = GetPeerDevIdFromJson(in, &isUdid); in GetPeerDeviceEntry() local
171 if (peerDeviceId == NULL) { in GetPeerDeviceEntry()
175 … return GaGetTrustedDeviceEntryById(osAccountId, peerDeviceId, isUdid, groupId, returnDeviceEntry); in GetPeerDeviceEntry()
/base/security/device_auth/services/session_manager/src/session/v2/
Ddev_session_util.c34 const char *peerDeviceId = GetStringFromJson(context, FIELD_PEER_UDID); in GetPeerDeviceEntryByContext() local
35 if (peerDeviceId != NULL) { in GetPeerDeviceEntryByContext()
39 peerDeviceId = GetStringFromJson(context, FIELD_PEER_AUTH_ID); in GetPeerDeviceEntryByContext()
40 if (peerDeviceId == NULL) { in GetPeerDeviceEntryByContext()
45 return GetDeviceEntryById(osAccountId, peerDeviceId, isUdid, groupId); in GetPeerDeviceEntryByContext()
/base/security/access_token/services/tokensyncmanager/test/mock/src/
Dsoft_bus_session_mock.cpp76 int OpenSession(const char *mySessionName, const char *peerSessionName, const char *peerDeviceId, c… in OpenSession() argument
81 ACCESSTOKEN_LOG_DEBUG(LABEL, "peerDeviceId: %{public}s", peerDeviceId); in OpenSession()
/base/security/device_auth/services/group_manager/src/
Dgroup_manager.c111 int32_t GetRelatedGroupsImpl(int32_t osAccountId, const char *appId, const char *peerDeviceId, in GetRelatedGroupsImpl() argument
115 …oupSupport() ? GetGroupImplInstance()->getAccessibleRelatedGroups(osAccountId, appId, peerDeviceId, in GetRelatedGroupsImpl()
/base/security/device_auth/services/group_manager/inc/
Dgroup_manager.h45 int32_t GetRelatedGroupsImpl(int32_t osAccountId, const char *appId, const char *peerDeviceId,
Dgroup_operation.h47 …ssibleRelatedGroups)(int32_t osAccountId, const char *appId, const char *peerDeviceId, bool isUdid,
Dgroup_operation_common.h98 int32_t GetRelatedGroups(int32_t osAccountId, const char *peerDeviceId, bool isUdid,
/base/security/access_token/services/tokensyncmanager/test/mock/include/
Dsession.h258 int OpenSession(const char *mySessionName, const char *peerSessionName, const char *peerDeviceId, c…
/base/security/device_auth/interfaces/inner_api/
Ddevice_auth.h261 int32_t (*getRelatedGroups)(int32_t osAccountId, const char *appId, const char *peerDeviceId,
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation.c824 …essibleRelatedGroups(int32_t osAccountId, const char *appId, const char *peerDeviceId, bool isUdid, in GetAccessibleRelatedGroups() argument
828 … if ((appId == NULL) || (peerDeviceId == NULL) || (returnGroupVec == NULL) || (groupNum == NULL) || in GetAccessibleRelatedGroups()
835 int32_t result = GetRelatedGroups(osAccountId, peerDeviceId, isUdid, &groupEntryVec); in GetAccessibleRelatedGroups()
Dgroup_operation_common.c253 int32_t GetRelatedGroups(int32_t osAccountId, const char *peerDeviceId, bool isUdid, GroupEntryVec … in GetRelatedGroups() argument
261 params.udid = peerDeviceId; in GetRelatedGroups()
263 params.authId = peerDeviceId; in GetRelatedGroups()