Home
last modified time | relevance | path

Searched refs:peerDeviceId (Results 1 - 13 of 13) sorted by relevance

/base/security/device_auth/services/mk_agree/src/mock/
H A Dkey_manager_mock.c25 int32_t GenerateMk(int32_t osAccountId, const char *peerDeviceId, const Uint8Buff *peerPubKey) in GenerateMk() argument
28 (void)peerDeviceId; in GenerateMk()
33 int32_t DeleteMk(int32_t osAccountId, const char *peerDeviceId) in DeleteMk() argument
36 (void)peerDeviceId; in DeleteMk()
40 int32_t GeneratePseudonymPsk(int32_t osAccountId, const char *peerDeviceId, const Uint8Buff *salt) in GeneratePseudonymPsk() argument
43 (void)peerDeviceId; in GeneratePseudonymPsk()
48 int32_t DeletePseudonymPsk(int32_t osAccountId, const char *peerDeviceId) in DeletePseudonymPsk() argument
51 (void)peerDeviceId; in DeletePseudonymPsk()
55 int32_t GenerateAndSavePseudonymId(int32_t osAccountId, const char *peerDeviceId, const PseudonymKeyInfo *info, in GenerateAndSavePseudonymId() argument
59 (void)peerDeviceId; in GenerateAndSavePseudonymId()
[all...]
/base/security/device_auth/services/mk_agree/inc/
H A Dkey_manager.h31 int32_t GenerateMk(int32_t osAccountId, const char *peerDeviceId, const Uint8Buff *peerPubKey);
32 int32_t DeleteMk(int32_t osAccountId, const char *peerDeviceId);
33 int32_t GeneratePseudonymPsk(int32_t osAccountId, const char *peerDeviceId, const Uint8Buff *salt);
34 int32_t DeletePseudonymPsk(int32_t osAccountId, const char *peerDeviceId);
35 int32_t GenerateAndSavePseudonymId(int32_t osAccountId, const char *peerDeviceId, const PseudonymKeyInfo *info,
/base/security/device_auth/services/mk_agree/src/
H A Dkey_manager.c114 static int32_t GenerateMkAlias(const char *peerDeviceId, Uint8Buff *keyAlias) in GenerateMkAlias() argument
116 Uint8Buff peerDevIdBuff = { (uint8_t *)peerDeviceId, HcStrlen(peerDeviceId) }; in GenerateMkAlias()
131 static int32_t GeneratePseudonymPskAlias(const char *peerDeviceId, Uint8Buff *keyAlias) in GeneratePseudonymPskAlias() argument
135 Uint8Buff peerDevIdBuff = { (uint8_t *)peerDeviceId, HcStrlen(peerDeviceId) }; in GeneratePseudonymPskAlias()
194 int32_t GenerateMk(int32_t osAccountId, const char *peerDeviceId, const Uint8Buff *peerPubKey) in GenerateMk() argument
196 if (peerDeviceId == NULL || peerPubKey == NULL) { in GenerateMk()
202 int32_t res = GenerateMkAlias(peerDeviceId, &mkAliasBuff); in GenerateMk()
226 int32_t DeleteMk(int32_t osAccountId, const char *peerDeviceId) in DeleteMk() argument
252 GeneratePseudonymPsk(int32_t osAccountId, const char *peerDeviceId, const Uint8Buff *salt) GeneratePseudonymPsk() argument
294 DeletePseudonymPsk(int32_t osAccountId, const char *peerDeviceId) DeletePseudonymPsk() argument
320 GenerateAndSavePseudonymId(int32_t osAccountId, const char *peerDeviceId, const PseudonymKeyInfo *info, const Uint8Buff *saltBuff, Uint8Buff *returnHmac) GenerateAndSavePseudonymId() argument
[all...]
/base/security/device_auth/test/fuzztest/group_manage/getrelatedgroups_fuzzer/
H A 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, &groupNum); in FuzzDoGetRelatedGroups()
/base/security/device_auth/services/identity_manager/src/
H A Didentity_common.c124 const char *peerDeviceId = GetPeerDevIdFromJson(in, &isUdid); in GetPeerDeviceEntry() local
125 if (peerDeviceId == NULL) { in GetPeerDeviceEntry()
129 return GaGetTrustedDeviceEntryById(osAccountId, peerDeviceId, isUdid, groupId, returnDeviceEntry); in GetPeerDeviceEntry()
/base/security/device_auth/services/legacy/group_manager/src/
H A Dgroup_manager.c111 int32_t GetRelatedGroupsImpl(int32_t osAccountId, const char *appId, const char *peerDeviceId, in GetRelatedGroupsImpl() argument
115 return IsGroupSupport() ? GetGroupImplInstance()->getAccessibleRelatedGroups(osAccountId, appId, peerDeviceId, in GetRelatedGroupsImpl()
/base/security/device_auth/services/session_manager/src/session/v2/
H A 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/device_auth/services/legacy/group_manager/inc/
H A Dgroup_manager.h45 int32_t GetRelatedGroupsImpl(int32_t osAccountId, const char *appId, const char *peerDeviceId,
H A Dgroup_operation.h47 int32_t (*getAccessibleRelatedGroups)(int32_t osAccountId, const char *appId, const char *peerDeviceId,
H A Dgroup_operation_common.h98 int32_t GetRelatedGroups(int32_t osAccountId, const char *peerDeviceId, bool isUdid,
/base/security/device_auth/services/legacy/group_manager/src/group_operation/
H A Dgroup_operation.c964 static int32_t GetAccessibleRelatedGroups(int32_t osAccountId, const char *appId, const char *peerDeviceId, in GetAccessibleRelatedGroups() argument
969 if ((appId == NULL) || (peerDeviceId == NULL) || (returnGroupVec == NULL) || (groupNum == NULL) || in GetAccessibleRelatedGroups()
978 PRINT_SENSITIVE_DATA("PeerUdid", peerDeviceId); in GetAccessibleRelatedGroups()
980 int32_t result = GetRelatedGroups(osAccountId, peerDeviceId, true, &groupEntryVec); in GetAccessibleRelatedGroups()
988 result = GetRelatedGroups(osAccountId, peerDeviceId, false, &groupEntryVec); in GetAccessibleRelatedGroups()
/base/security/device_auth/interfaces/inner_api/
H A Ddevice_auth.h31 #define FIELD_PEER_DEVICE_ID "peerDeviceId"
277 int32_t (*getRelatedGroups)(int32_t osAccountId, const char *appId, const char *peerDeviceId,
/base/security/device_auth/services/legacy/group_manager/src/group_operation/group_operation_common/
H A Dgroup_operation_common.c337 int32_t GetRelatedGroups(int32_t osAccountId, const char *peerDeviceId, bool isUdid, GroupEntryVec *returnGroupEntryVec) in GetRelatedGroups() argument
345 params.udid = peerDeviceId; in GetRelatedGroups()
347 params.authId = peerDeviceId; in GetRelatedGroups()

Completed in 11 milliseconds