/base/security/device_auth/services/mk_agree/src/mock/ |
H A D | key_manager_mock.c | 19 int32_t GenerateDeviceKeyPair(int32_t osAccountId) in GenerateDeviceKeyPair() argument 21 (void)osAccountId; in GenerateDeviceKeyPair() 25 int32_t GenerateMk(int32_t osAccountId, const char *peerDeviceId, const Uint8Buff *peerPubKey) in GenerateMk() argument 27 (void)osAccountId; in GenerateMk() 33 int32_t DeleteMk(int32_t osAccountId, const char *peerDeviceId) in DeleteMk() argument 35 (void)osAccountId; in DeleteMk() 40 int32_t GeneratePseudonymPsk(int32_t osAccountId, const char *peerDeviceId, const Uint8Buff *salt) in GeneratePseudonymPsk() argument 42 (void)osAccountId; in GeneratePseudonymPsk() 48 int32_t DeletePseudonymPsk(int32_t osAccountId, const char *peerDeviceId) in DeletePseudonymPsk() argument 50 (void)osAccountId; in DeletePseudonymPsk() 55 GenerateAndSavePseudonymId(int32_t osAccountId, const char *peerDeviceId, const PseudonymKeyInfo *info, const Uint8Buff *saltBuff, Uint8Buff *returnHmac) GenerateAndSavePseudonymId() argument 66 GetDevicePubKey(int32_t osAccountId, Uint8Buff *devicePk) GetDevicePubKey() argument [all...] |
/base/security/device_auth/services/legacy/group_manager/src/ |
H A D | group_manager.c | 24 int32_t CreateGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *createParams) in CreateGroupImpl() argument 28 return IsGroupSupport() ? GetGroupImplInstance()->createGroup(osAccountId, requestId, appId, createParams) in CreateGroupImpl() 32 int32_t DeleteGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *disbandParams) in DeleteGroupImpl() argument 36 return IsGroupSupport() ? GetGroupImplInstance()->deleteGroup(osAccountId, requestId, appId, disbandParams) in DeleteGroupImpl() 40 int32_t DeleteMemberFromGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *deleteParams) in DeleteMemberFromGroupImpl() argument 44 return IsGroupSupport() ? GetGroupImplInstance()->deleteMember(osAccountId, requestId, appId, deleteParams) in DeleteMemberFromGroupImpl() 48 int32_t AddMultiMembersToGroupImpl(int32_t osAccountId, const char *appId, const char *addParams) in AddMultiMembersToGroupImpl() argument 51 return IsGroupSupport() ? GetGroupImplInstance()->addMultiMembers(osAccountId, appId, addParams) in AddMultiMembersToGroupImpl() 55 int32_t DelMultiMembersFromGroupImpl(int32_t osAccountId, const char *appId, const char *deleteParams) in DelMultiMembersFromGroupImpl() argument 58 return IsGroupSupport() ? GetGroupImplInstance()->delMultiMembers(osAccountId, appI in DelMultiMembersFromGroupImpl() 81 CheckAccessToGroupImpl(int32_t osAccountId, const char *appId, const char *groupId) CheckAccessToGroupImpl() argument 88 GetGroupInfoByIdImpl(int32_t osAccountId, const char *appId, const char *groupId, char **returnGroupInfo) GetGroupInfoByIdImpl() argument 95 GetGroupInfoImpl(int32_t osAccountId, const char *appId, const char *queryParams, char **returnGroupVec, uint32_t *groupNum) GetGroupInfoImpl() argument 103 GetJoinedGroupsImpl(int32_t osAccountId, const char *appId, int groupType, char **returnGroupVec, uint32_t *groupNum) GetJoinedGroupsImpl() argument 111 GetRelatedGroupsImpl(int32_t osAccountId, const char *appId, const char *peerDeviceId, char **returnGroupVec, uint32_t *groupNum) GetRelatedGroupsImpl() argument 119 GetDeviceInfoByIdImpl(int32_t osAccountId, const char *appId, const char *deviceId, const char *groupId, char **returnDeviceInfo) GetDeviceInfoByIdImpl() argument 128 GetTrustedDevicesImpl(int32_t osAccountId, const char *appId, const char *groupId, char **returnDevInfoVec, uint32_t *deviceNum) GetTrustedDevicesImpl() argument 136 IsDeviceInGroupImpl(int32_t osAccountId, const char *appId, const char *groupId, const char *deviceId) IsDeviceInGroupImpl() argument 143 GetPkInfoListImpl(int32_t osAccountId, const char *appId, const char *queryParams, char **returnInfoList, uint32_t *returnInfoNum) GetPkInfoListImpl() argument [all...] |
/base/security/device_auth/services/legacy/group_manager/src/group_operation/ |
H A D | group_operation.c | 50 static void RemoveNoPermissionGroup(int32_t osAccountId, GroupEntryVec *groupEntryVec, const char *appId) in RemoveNoPermissionGroup() argument 61 if (CheckGroupAccessible(osAccountId, StringGet(&(*groupEntryPtr)->id), appId) == HC_SUCCESS) { in RemoveNoPermissionGroup() 186 static int32_t QueryRelatedGroupsForGetPk(int32_t osAccountId, const char *udid, GroupEntryVec *returnGroupEntryVec) in QueryRelatedGroupsForGetPk() argument 191 int32_t result = QueryDevices(osAccountId, ¶ms, &deviceEntryVec); in QueryRelatedGroupsForGetPk() 201 TrustedGroupEntry *groupEntry = GetGroupEntryById(osAccountId, StringGet(&(*entry)->groupId)); in QueryRelatedGroupsForGetPk() 219 static int32_t GetPkByParams(int32_t osAccountId, const char *groupId, const TrustedDeviceEntry *deviceEntry, in GetPkByParams() argument 243 .osAccountId = osAccountId, in GetPkByParams() 262 static int32_t GeneratePkInfo(int32_t osAccountId, const char *queryUdid, const char *groupId, CJson *pkInfo) in GeneratePkInfo() argument 264 TrustedDeviceEntry *deviceEntry = GetTrustedDeviceEntryById(osAccountId, queryUdi in GeneratePkInfo() 286 AddAllPkInfoToList(int32_t osAccountId, const char *queryUdid, const GroupEntryVec *groupEntryVec, CJson *pkInfoList) AddAllPkInfoToList() argument 330 GeneratePkInfoList(int32_t osAccountId, const CJson *params, CJson *pkInfoList) GeneratePkInfoList() argument 392 CreateGroup(int32_t osAccountId, CJson *jsonParams, char **returnJsonStr) CreateGroup() argument 407 DeleteGroup(int32_t osAccountId, CJson *jsonParams, char **returnJsonStr) DeleteGroup() argument 428 DeleteMemberFromPeerToPeerGroup(int32_t osAccountId, int64_t requestId, CJson *jsonParams, const DeviceAuthCallback *callback) DeleteMemberFromPeerToPeerGroup() argument 480 CreateGroupInner(int32_t osAccountId, int64_t requestId, const char *appId, const char *createParams) CreateGroupInner() argument 511 BuildCallEventData(const char *appId, const char *funcName, const int32_t osAccountId, const int32_t callResult, const int32_t processCode) BuildCallEventData() argument 528 RequestCreateGroup(int32_t osAccountId, int64_t requestId, const char *appId, const char *createParams) RequestCreateGroup() argument 545 DeleteGroupInner(int32_t osAccountId, int64_t requestId, const char *appId, const char *disbandParams) DeleteGroupInner() argument 575 RequestDeleteGroup(int32_t osAccountId, int64_t requestId, const char *appId, const char *disbandParams) RequestDeleteGroup() argument 592 DeleteMemberFromGroupInner(int32_t osAccountId, int64_t requestId, const char *appId, const char *deleteParams) DeleteMemberFromGroupInner() argument 623 RequestDeleteMemberFromGroup(int32_t osAccountId, int64_t requestId, const char *appId, const char *deleteParams) RequestDeleteMemberFromGroup() argument 641 AddMultiMembersToGroupInner(int32_t osAccountId, const char *appId, const char *addParams) AddMultiMembersToGroupInner() argument 684 RequestAddMultiMembersToGroup(int32_t osAccountId, const char *appId, const char *addParams) RequestAddMultiMembersToGroup() argument 693 DelMultiMembersFromGroupInner(int32_t osAccountId, const char *appId, const char *deleteParams) DelMultiMembersFromGroupInner() argument 736 RequestDelMultiMembersFromGroup(int32_t osAccountId, const char *appId, const char *deleteParams) RequestDelMultiMembersFromGroup() argument 796 int32_t osAccountId; GetRegisterInfo() local 817 CheckAccessToGroup(int32_t osAccountId, const char *appId, const char *groupId) CheckAccessToGroup() argument 836 GetAccessibleGroupInfoById(int32_t osAccountId, const char *appId, const char *groupId, char **returnGroupInfo) GetAccessibleGroupInfoById() argument 883 GetAccessibleGroupInfo(int32_t osAccountId, const char *appId, const char *queryParams, char **returnGroupVec, uint32_t *groupNum) GetAccessibleGroupInfo() argument 935 GetAccessibleJoinedGroups(int32_t osAccountId, const char *appId, int groupType, char **returnGroupVec, uint32_t *groupNum) GetAccessibleJoinedGroups() argument 964 GetAccessibleRelatedGroups(int32_t osAccountId, const char *appId, const char *peerDeviceId, char **returnGroupVec, uint32_t *groupNum) GetAccessibleRelatedGroups() argument 1001 CheckParams(int32_t osAccountId, const char *appId, const DeviceQueryParams *devQueryParams, const char *groupId, char **returnDeviceInfo) CheckParams() argument 1012 GetAccessibleDeviceInfoById(int32_t osAccountId, const char *appId, const DeviceQueryParams *devQueryParams, const char *groupId, char **returnDeviceInfo) GetAccessibleDeviceInfoById() argument 1064 GetAccessibleTrustedDevices(int32_t osAccountId, const char *appId, const char *groupId, char **returnDevInfoVec, uint32_t *deviceNum) GetAccessibleTrustedDevices() argument 1097 IsDeviceInAccessibleGroup(int32_t osAccountId, const char *appId, const char *groupId, const char *deviceId, bool isUdid) IsDeviceInAccessibleGroup() argument 1121 GetPkInfoList(int32_t osAccountId, const char *appId, const char *queryParams, char **returnInfoList, uint32_t *returnInfoNum) GetPkInfoList() argument 1254 InitAndPushGMTask(int32_t osAccountId, int32_t opCode, int64_t reqId, CJson *params, TaskFunc func) InitAndPushGMTask() argument [all...] |
/base/security/device_auth/services/legacy/group_manager/inc/ |
H A D | group_manager.h | 29 int32_t CreateGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *createParams); 30 int32_t DeleteGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *disbandParams); 31 int32_t DeleteMemberFromGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *deleteParams); 32 int32_t AddMultiMembersToGroupImpl(int32_t osAccountId, const char *appId, const char *addParams); 33 int32_t DelMultiMembersFromGroupImpl(int32_t osAccountId, const char *appId, const char *deleteParams); 39 int32_t CheckAccessToGroupImpl(int32_t osAccountId, const char *appId, const char *groupId); 40 int32_t GetGroupInfoByIdImpl(int32_t osAccountId, const char *appId, const char *groupId, char **returnGroupInfo); 41 int32_t GetGroupInfoImpl(int32_t osAccountId, const char *appId, const char *queryParams, 43 int32_t GetJoinedGroupsImpl(int32_t osAccountId, const char *appId, int groupType, 45 int32_t GetRelatedGroupsImpl(int32_t osAccountId, cons [all...] |
H A D | group_operation_common.h | 34 int32_t ProcessKeyPair(int32_t osAccountId, int action, const CJson *jsonParams, const char *groupId); 39 int32_t AssertSameGroupNotExist(int32_t osAccountId, const char *groupId); 41 int32_t CheckGroupExist(int32_t osAccountId, const char *groupId); 42 int32_t CheckGroupNumLimit(int32_t osAccountId, int32_t groupType, const char *appId); 43 int32_t CheckDeviceNumLimit(int32_t osAccountId, const char *groupId, const char *peerUdid); 47 int32_t CheckPermForGroup(int32_t osAccountId, int actionType, const char *callerPkgName, const char *groupId); 69 int32_t AddGroupToDatabaseByJson(int32_t osAccountId, int32_t (*generateGroupParams)(const CJson*, 71 int32_t AddDeviceToDatabaseByJson(int32_t osAccountId, int32_t (*generateDevParams)(const CJson*, const char*, 73 int32_t DelGroupFromDb(int32_t osAccountId, const char *groupId); 74 int32_t DelDeviceFromDb(int32_t osAccountId, cons [all...] |
H A D | group_operation.h | 32 int32_t (*createGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *createParams); 33 int32_t (*deleteGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *disbandParams); 34 int32_t (*deleteMember)(int32_t osAccountId, int64_t requestId, const char *appId, const char *deleteParams); 35 int32_t (*addMultiMembers)(int32_t osAccountId, const char *appId, const char *addParams); 36 int32_t (*delMultiMembers)(int32_t osAccountId, const char *appId, const char *deleteParams); 40 int32_t (*checkAccessToGroup)(int32_t osAccountId, const char *appId, const char *groupId); 41 int32_t (*getAccessibleGroupInfoById)(int32_t osAccountId, const char *appId, const char *groupId, 43 int32_t (*getAccessibleGroupInfo)(int32_t osAccountId, const char *appId, const char *queryParams, 45 int32_t (*getAccessibleJoinedGroups)(int32_t osAccountId, const char *appId, int groupType, 47 int32_t (*getAccessibleRelatedGroups)(int32_t osAccountId, cons [all...] |
/base/security/device_auth/services/legacy/authenticators/src/account_related/creds_manager/ |
H A D | sym_token_manager.c | 34 int32_t osAccountId; member 63 static bool GetTokensFilePathCe(int32_t osAccountId, char *tokenPath, uint32_t pathBufferLen) in GetTokensFilePathCe() argument 71 beginPath, osAccountId) <= 0) { in GetTokensFilePathCe() 78 static bool GetTokensFilePathDe(int32_t osAccountId, char *tokenPath, uint32_t pathBufferLen) in GetTokensFilePathDe() argument 86 if (osAccountId == DEFAULT_OS_ACCOUNT) { in GetTokensFilePathDe() 89 writeByteNum = sprintf_s(tokenPath, pathBufferLen, "%s/account_data_sym%d.dat", beginPath, osAccountId); in GetTokensFilePathDe() 98 static bool GetTokensFilePath(int32_t osAccountId, char *tokenPath, uint32_t pathBufferLen) in GetTokensFilePath() argument 101 return GetTokensFilePathCe(osAccountId, tokenPath, pathBufferLen); in GetTokensFilePath() 103 return GetTokensFilePathDe(osAccountId, tokenPath, pathBufferLen); in GetTokensFilePath() 367 static int32_t ImportSymTokenToKeyManager(int32_t osAccountId, cons argument 411 DeleteSymTokenFromKeyManager(int32_t osAccountId, const SymToken *token) DeleteSymTokenFromKeyManager() argument 438 LoadOsSymTokensDb(int32_t osAccountId) LoadOsSymTokensDb() argument 459 TryMoveDeDataToCe(int32_t osAccountId) TryMoveDeDataToCe() argument 503 RemoveOsSymTokensInfo(int32_t osAccountId) RemoveOsSymTokensInfo() argument 517 LoadOsSymTokensDbCe(int32_t osAccountId) LoadOsSymTokensDbCe() argument 524 OnOsAccountUnlocked(int32_t osAccountId) OnOsAccountUnlocked() argument 532 OnOsAccountRemoved(int32_t osAccountId) OnOsAccountRemoved() argument 540 IsOsAccountDataLoaded(int32_t osAccountId) IsOsAccountDataLoaded() argument 552 LoadDataIfNotLoaded(int32_t osAccountId) LoadDataIfNotLoaded() argument 561 GetTokensInfoByOsAccountId(int32_t osAccountId) GetTokensInfoByOsAccountId() argument 585 SaveOsSymTokensDb(int32_t osAccountId) SaveOsSymTokensDb() argument 606 AddSymTokenToVec(int32_t osAccountId, SymToken *token) AddSymTokenToVec() argument 629 PopSymTokenFromVec(int32_t osAccountId, const char *userId, const char *deviceId) PopSymTokenFromVec() argument 654 AddToken(int32_t osAccountId, int32_t opCode, CJson *in) AddToken() argument 690 DeleteToken(int32_t osAccountId, const char *userId, const char *deviceId) DeleteToken() argument 730 int32_t osAccountId; LoadTokenDb() local [all...] |
H A D | asy_token_manager.c | 36 int32_t osAccountId; member 94 static bool GetTokenPathCe(int32_t osAccountId, char *tokenPath, uint32_t pathBufferLen) in GetTokenPathCe() argument 102 beginPath, osAccountId) <= 0) { in GetTokenPathCe() 109 static bool GetTokenPathDe(int32_t osAccountId, char *tokenPath, uint32_t pathBufferLen) in GetTokenPathDe() argument 117 if (osAccountId == DEFAULT_OS_ACCOUNT) { in GetTokenPathDe() 120 writeByteNum = sprintf_s(tokenPath, pathBufferLen, "%s/account_data_asy%d.dat", beginPath, osAccountId); in GetTokenPathDe() 129 static bool GetTokenPath(int32_t osAccountId, char *tokenPath, uint32_t pathBufferLen) in GetTokenPath() argument 132 return GetTokenPathCe(osAccountId, tokenPath, pathBufferLen); in GetTokenPath() 134 return GetTokenPathDe(osAccountId, tokenPath, pathBufferLen); in GetTokenPath() 408 static int32_t ImportServerPk(int32_t osAccountId, cons argument 428 VerifyPkInfoSignature(int32_t osAccountId, const CJson *credJson, CJson *pkInfoJson, uint8_t *signature, Uint8Buff *keyAlias) VerifyPkInfoSignature() argument 457 DoImportServerPkAndVerify(int32_t osAccountId, const CJson *credJson, uint8_t *signature, uint8_t *serverPk, CJson *pkInfoJson) DoImportServerPkAndVerify() argument 501 VerifySignature(int32_t osAccountId, const CJson *credJson) VerifySignature() argument 628 GetTokenFromPlugin(int32_t osAccountId, AccountToken *token, const char *userId, const char *deviceId) GetTokenFromPlugin() argument 656 DoExportPkAndCompare(int32_t osAccountId, const char *userId, const char *deviceId, const char *devicePk, Uint8Buff *keyAlias) DoExportPkAndCompare() argument 699 CheckDevicePk(int32_t osAccountId, const CJson *credJson) CheckDevicePk() argument 765 CheckCredValidity(int32_t osAccountId, int32_t opCode, const CJson *in) CheckCredValidity() argument 792 DoGenerateAndExportPk(int32_t osAccountId, const char *userId, const char *deviceId, Uint8Buff *keyAlias, Uint8Buff *publicKey) DoGenerateAndExportPk() argument 824 GetRegisterProof(int32_t osAccountId, const CJson *in, CJson *out) GetRegisterProof() argument 876 DeleteKeyPair(int32_t osAccountId, AccountToken *token) DeleteKeyPair() argument 904 LoadOsAccountTokenDb(int32_t osAccountId) LoadOsAccountTokenDb() argument 925 TryMoveDeDataToCe(int32_t osAccountId) TryMoveDeDataToCe() argument 969 RemoveOsAccountTokenInfo(int32_t osAccountId) RemoveOsAccountTokenInfo() argument 983 LoadOsAccountTokenDbCe(int32_t osAccountId) LoadOsAccountTokenDbCe() argument 990 OnOsAccountUnlocked(int32_t osAccountId) OnOsAccountUnlocked() argument 998 OnOsAccountRemoved(int32_t osAccountId) OnOsAccountRemoved() argument 1006 IsOsAccountDataLoaded(int32_t osAccountId) IsOsAccountDataLoaded() argument 1018 LoadDataIfNotLoaded(int32_t osAccountId) LoadDataIfNotLoaded() argument 1027 GetTokenInfoByOsAccountId(int32_t osAccountId) GetTokenInfoByOsAccountId() argument 1051 SaveOsAccountTokenDb(int32_t osAccountId) SaveOsAccountTokenDb() argument 1076 GetAccountToken(int32_t osAccountId, const char *userId, const char *deviceId) GetAccountToken() argument 1095 GetToken(int32_t osAccountId, AccountToken *token, const char *userId, const char *deviceId) GetToken() argument 1130 DeleteTokenInner(int32_t osAccountId, const char *userId, const char *deviceId, AccountTokenVec *deleteTokens) DeleteTokenInner() argument 1170 AddTokenInner(int32_t osAccountId, const AccountToken *token) AddTokenInner() argument 1206 AddToken(int32_t osAccountId, int32_t opCode, const CJson *in) AddToken() argument 1241 DeleteToken(int32_t osAccountId, const char *userId, const char *deviceId) DeleteToken() argument 1279 int32_t osAccountId; LoadTokenDb() local [all...] |
/base/security/device_auth/services/mk_agree/inc/ |
H A D | key_manager.h | 30 int32_t GenerateDeviceKeyPair(int32_t osAccountId); 31 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, 37 int32_t GetDevicePubKey(int32_t osAccountId, Uint8Buff *devicePk);
|
/base/security/device_auth/services/legacy/group_manager/src/group_operation/peer_to_peer_group/ |
H A D | peer_to_peer_group.c | 30 static bool IsSameNameGroupExist(int32_t osAccountId, const char *ownerName, const char *groupName) in IsSameNameGroupExist() argument 36 int32_t result = QueryGroups(osAccountId, &queryParams, &groupEntryVec); in IsSameNameGroupExist() 49 static int32_t CheckGroupName(int32_t osAccountId, const char *appId, const CJson *jsonParams) in CheckGroupName() argument 57 if (IsSameNameGroupExist(osAccountId, appId, groupName)) { in CheckGroupName() 113 static int32_t CheckCreateParams(int32_t osAccountId, const CJson *jsonParams) in CheckCreateParams() argument 121 if (((result = CheckGroupName(osAccountId, appId, jsonParams)) != HC_SUCCESS) || in CheckCreateParams() 125 ((result = CheckGroupNumLimit(osAccountId, PEER_TO_PEER_GROUP, appId)) != HC_SUCCESS)) { in CheckCreateParams() 169 static int32_t CreateGroupInner(int32_t osAccountId, const CJson *jsonParams, char **returnGroupId) in CreateGroupInner() argument 173 if (((result = CheckCreateParams(osAccountId, jsonParams)) != HC_SUCCESS) || in CreateGroupInner() 175 ((result = ProcessKeyPair(osAccountId, CREATE_KEY_PAI in CreateGroupInner() 186 GetPeerDevUserTypeFromDb(int32_t osAccountId, const char *groupId, const char *peerAuthId) GetPeerDevUserTypeFromDb() argument 204 DelPeerDevAndKeyInfo(int32_t osAccountId, const char *groupId, const char *peerAuthId) DelPeerDevAndKeyInfo() argument 241 DelAllPeerDevAndKeyInfo(int32_t osAccountId, const char *groupId) DelAllPeerDevAndKeyInfo() argument 268 AddAuthIdAndUserTypeToParams(int32_t osAccountId, const char *groupId, CJson *jsonParams) AddAuthIdAndUserTypeToParams() argument 304 DelGroupAndSelfKeyInfo(int32_t osAccountId, const char *groupId, CJson *jsonParams) DelGroupAndSelfKeyInfo() argument 339 int32_t osAccountId; HandleLocalUnbind() local 363 CheckPeerDeviceStatus(int32_t osAccountId, const char *groupId, const CJson *jsonParams) CheckPeerDeviceStatus() argument 399 int32_t osAccountId; CheckDeletePeerStatus() local 426 CreateGroup(int32_t osAccountId, CJson *jsonParams, char **returnJsonStr) CreateGroup() argument 447 DeleteGroup(int32_t osAccountId, CJson *jsonParams, char **returnJsonStr) DeleteGroup() argument 466 DeleteMemberFromGroup(int32_t osAccountId, int64_t requestId, CJson *jsonParams, const DeviceAuthCallback *callback) DeleteMemberFromGroup() argument [all...] |
/base/security/device_auth/services/legacy/group_manager/src/group_operation/identical_account_group/ |
H A D | identical_account_group.c | 114 static int32_t CheckCreateParams(int32_t osAccountId, const CJson *jsonParams) in CheckCreateParams() argument 127 ((result = CheckGroupNumLimit(osAccountId, IDENTICAL_ACCOUNT_GROUP, appId)) != HC_SUCCESS)) { in CheckCreateParams() 133 static int32_t DelDeviceById(int32_t osAccountId, const char *groupId, const char *deviceId, bool isUdid) in DelDeviceById() argument 142 return DelTrustedDevice(osAccountId, &queryDeviceParams); in DelDeviceById() 145 static int32_t ImportSelfToken(int32_t osAccountId, CJson *jsonParams) in ImportSelfToken() argument 176 return ProcCred(ACCOUNT_RELATED_PLUGIN, osAccountId, IMPORT_SELF_CREDENTIAL, credJson, NULL); in ImportSelfToken() 179 static int32_t DelSelfToken(int32_t osAccountId, CJson *jsonParams) in DelSelfToken() argument 186 return ProcCred(ACCOUNT_RELATED_PLUGIN, osAccountId, DELETE_SELF_CREDENTIAL, credJson, NULL); in DelSelfToken() 229 static int32_t DelDeviceToken(int32_t osAccountId, const TrustedDeviceEntry *entry, bool isLocalDev) in DelDeviceToken() argument 241 res = ProcCred(ACCOUNT_RELATED_PLUGIN, osAccountId, in DelDeviceToken() 247 DelAllTokens(int32_t osAccountId, const DeviceEntryVec *vec) DelAllTokens() argument 264 DelAllPeerTokens(int32_t osAccountId, const DeviceEntryVec *vec) DelAllPeerTokens() argument 280 DelAcrossAccountGroupAndTokens(int32_t osAccountId, const char *groupId) DelAcrossAccountGroupAndTokens() argument 290 GetRelatedAcrossAccountGroups(int32_t osAccountId, const char *groupId, GroupEntryVec *vec) GetRelatedAcrossAccountGroups() argument 305 DelRelatedAcrossAccountGroups(int32_t osAccountId, const char *groupId) DelRelatedAcrossAccountGroups() argument 321 DelGroupAndTokens(int32_t osAccountId, const char *groupId) DelGroupAndTokens() argument 363 AddDeviceAndToken(int32_t osAccountId, const CJson *jsonParams, CJson *deviceInfo) AddDeviceAndToken() argument 391 DelPeerDevice(int32_t osAccountId, CJson *jsonParams, CJson *deviceInfo, bool needDeleteToken) DelPeerDevice() argument 429 DelPeerDeviceAndToken(int32_t osAccountId, CJson *jsonParams, CJson *deviceInfo) DelPeerDeviceAndToken() argument 434 CheckChangeParams(int32_t osAccountId, const char *appId, CJson *jsonParams) CheckChangeParams() argument 452 AddGroupAndToken(int32_t osAccountId, CJson *jsonParams, const char *groupId) AddGroupAndToken() argument 481 CheckUserIdValid(int32_t osAccountId, const CJson *jsonParams, const CJson *deviceInfo) CheckUserIdValid() argument 515 CheckDeviceInfoValid(int32_t osAccountId, const CJson *jsonParams, const CJson *deviceInfo) CheckDeviceInfoValid() argument 526 CreateGroup(int32_t osAccountId, CJson *jsonParams, char **returnJsonStr) CreateGroup() argument 548 DeleteGroup(int32_t osAccountId, CJson *jsonParams, char **returnJsonStr) DeleteGroup() argument 566 UpdateTrustedDeviceForMetaNode(int32_t osAccountId, CJson *jsonParams, CJson *deviceList) UpdateTrustedDeviceForMetaNode() argument 619 AddMetaNodeDeviceToGroup(int32_t osAccountId, CJson *jsonParams) AddMetaNodeDeviceToGroup() argument 652 AddMultiMembersToGroup(int32_t osAccountId, const char *appId, CJson *jsonParams) AddMultiMembersToGroup() argument 700 DelMultiMembersFromGroup(int32_t osAccountId, const char *appId, CJson *jsonParams) DelMultiMembersFromGroup() argument [all...] |
/base/security/device_auth/services/privacy_enhancement/src/ |
H A D | pseudonym_manager.c | 45 int32_t osAccountId; member 183 static bool GetPseudonymPathCe(int32_t osAccountId, char *path, uint32_t pathBufferLen) in GetPseudonymPathCe() argument 190 if (sprintf_s(path, pathBufferLen, "%s/%d/deviceauth/pseudonym/pseudonym_data.dat", beginPath, osAccountId) <= 0) { in GetPseudonymPathCe() 197 static bool GetPseudonymPathDe(int32_t osAccountId, char *path, uint32_t pathBufferLen) in GetPseudonymPathDe() argument 205 if (osAccountId == DEFAULT_OS_ACCOUNT) { in GetPseudonymPathDe() 208 writeByteNum = sprintf_s(path, pathBufferLen, "%s/pseudonym_data%d.dat", beginPath, osAccountId); in GetPseudonymPathDe() 217 static bool GetPseudonymPath(int32_t osAccountId, char *path, uint32_t pathBufferLen) in GetPseudonymPath() argument 220 return GetPseudonymPathCe(osAccountId, path, pathBufferLen); in GetPseudonymPath() 222 return GetPseudonymPathDe(osAccountId, path, pathBufferLen); in GetPseudonymPath() 226 static int32_t OpenPseudonymFile(int32_t osAccountId, FileHandl argument 246 LoadPseudonymDataFromFile(int32_t osAccountId, PseudonymInfoVec *vec) LoadPseudonymDataFromFile() argument 327 WritePseudonymJsonToFile(int32_t osAccountId, CJson *Json) WritePseudonymJsonToFile() argument 351 SavePseudonymInfoToFile(int32_t osAccountId, const PseudonymInfoVec *vec) SavePseudonymInfoToFile() argument 399 LoadOsAccountPseudonymDb(int32_t osAccountId) LoadOsAccountPseudonymDb() argument 415 OnOsAccountUnlocked(int32_t osAccountId) OnOsAccountUnlocked() argument 423 RemoveOsAccountPseudonymInfo(int32_t osAccountId) RemoveOsAccountPseudonymInfo() argument 437 OnOsAccountRemoved(int32_t osAccountId) OnOsAccountRemoved() argument 445 IsOsAccountDataLoaded(int32_t osAccountId) IsOsAccountDataLoaded() argument 457 LoadDataIfNotLoaded(int32_t osAccountId) LoadDataIfNotLoaded() argument 466 GetPseudonymInfoByOsAccountId(int32_t osAccountId) GetPseudonymInfoByOsAccountId() argument 490 SaveOsAccountPseudonymDb(int32_t osAccountId) SaveOsAccountPseudonymDb() argument 510 DeletePseudonymInner(int32_t osAccountId, const char *dataTodelete, PseudonymInfoVec *deleteVec, const char *fieldName) DeletePseudonymInner() argument 585 int32_t osAccountId; LoadPseudonymData() local 600 GetRealInfo(int32_t osAccountId, const char *pseudonymId, char **realInfo) GetRealInfo() argument 632 GetPseudonymId(int32_t osAccountId, const char *indexKey, char **pseudonymId) GetPseudonymId() argument 664 AddPseudonymIdInfoToMemory(int32_t osAccountId, PseudonymInfo *pseudonymInfo) AddPseudonymIdInfoToMemory() argument 711 SavePseudonymId(int32_t osAccountId, const char *pseudonymId, const char *realInfo, const char *deviceId, const char *indexKey) SavePseudonymId() argument 739 DeleteAllPseudonymId(int32_t osAccountId, const char *deviceId) DeleteAllPseudonymId() argument 763 DeletePseudonymId(int32_t osAccountId, const char *indexKey) DeletePseudonymId() argument 787 IsNeedRefreshPseudonymId(int32_t osAccountId, const char *indexKey) IsNeedRefreshPseudonymId() argument [all...] |
/base/security/device_auth/services/privacy_enhancement/inc/ |
H A D | pseudonym_manager.h | 25 int32_t (*getRealInfo)(int32_t osAccountId, const char *pseudonymId, char **realInfo); 26 int32_t (*getPseudonymId)(int32_t osAccountId, const char *indexKey, char **pseudonymId); 27 int32_t (*savePseudonymId)(int32_t osAccountId, const char *pseudonymId, const char *realInfo, 29 int32_t (*deleteAllPseudonymId)(int32_t osAccountId, const char *deviceId); 30 int32_t (*deletePseudonymId)(int32_t osAccountId, const char *indexKey); 31 bool (*isNeedRefreshPseudonymId)(int32_t osAccountId, const char *indexKey);
|
/base/security/device_auth/services/legacy/group_manager/src/group_operation/across_account_group/ |
H A D | across_account_group.c | 85 static int32_t AddCredTypeToParamsFromIdenticalGroup(int32_t osAccountId, CJson *jsonParams) in AddCredTypeToParamsFromIdenticalGroup() argument 103 if ((QueryDevices(osAccountId, ¶ms, &deviceEntryVec) != HC_SUCCESS) || in AddCredTypeToParamsFromIdenticalGroup() 182 static int32_t AssertIdenticalGroupExist(int32_t osAccountId, const CJson *jsonParams) in AssertIdenticalGroupExist() argument 192 result = QueryGroups(osAccountId, ¶ms, &groupEntryVec); in AssertIdenticalGroupExist() 236 static int32_t CheckCreateParams(int32_t osAccountId, const CJson *jsonParams) in CheckCreateParams() argument 249 ((result = AssertIdenticalGroupExist(osAccountId, jsonParams)) != HC_SUCCESS)) { in CheckCreateParams() 295 static int32_t DelPeerDeviceToken(int32_t osAccountId, const TrustedDeviceEntry *entry) in DelPeerDeviceToken() argument 307 res = ProcCred(ACCOUNT_RELATED_PLUGIN, osAccountId, DELETE_TRUSTED_CREDENTIALS, delParams, NULL); in DelPeerDeviceToken() 312 static void DelAllPeerTokens(int32_t osAccountId, const DeviceEntryVec *vec) in DelAllPeerTokens() argument 321 res = DelPeerDeviceToken(osAccountId, *entr in DelAllPeerTokens() 328 DelGroupAndTokens(int32_t osAccountId, const char *groupId) DelGroupAndTokens() argument 338 CheckChangeParams(int32_t osAccountId, const char *appId, CJson *jsonParams) CheckChangeParams() argument 356 DelDeviceById(int32_t osAccountId, const char *groupId, const char *deviceId, bool isUdid) DelDeviceById() argument 394 AddDeviceAndToken(int32_t osAccountId, const CJson *jsonParams, CJson *deviceInfo) AddDeviceAndToken() argument 422 DelPeerDeviceAndToken(int32_t osAccountId, CJson *jsonParams, CJson *deviceInfo) DelPeerDeviceAndToken() argument 458 AddGroupAndLocalDev(int32_t osAccountId, CJson *jsonParams, const char *groupId) AddGroupAndLocalDev() argument 479 CheckUserIdValid(int32_t osAccountId, const CJson *jsonParams, const CJson *deviceInfo) CheckUserIdValid() argument 513 CheckDeviceInfoValid(int32_t osAccountId, const CJson *jsonParams, const CJson *deviceInfo) CheckDeviceInfoValid() argument 524 CreateGroup(int32_t osAccountId, CJson *jsonParams, char **returnJsonStr) CreateGroup() argument 547 DeleteGroup(int32_t osAccountId, CJson *jsonParams, char **returnJsonStr) DeleteGroup() argument 565 AddMultiMembersToGroup(int32_t osAccountId, const char *appId, CJson *jsonParams) AddMultiMembersToGroup() argument 606 DelMultiMembersFromGroup(int32_t osAccountId, const char *appId, CJson *jsonParams) DelMultiMembersFromGroup() argument [all...] |
/base/security/device_auth/services/frameworks/inc/hiview_adapter/ |
H A D | hisysevent_adapter.h | 87 #define DEV_AUTH_REPORT_CALL_EVENT_WITH_RESULT(appId, funcName, osAccountId, callResult, processCode) 90 #define DEV_AUTH_REPORT_UE_CALL_EVENT(osAccountId, groupType, appId, funcName) 91 #define DEV_AUTH_REPORT_UE_CALL_EVENT_BY_PARAMS(osAccountId, inParams, appId, funcName) 96 #define DEV_AUTH_REPORT_CALL_EVENT_WITH_RESULT(appId, funcName, osAccountId, callResult, processCode) \ 97 DevAuthReportCallEventWithResult(appId, funcName, osAccountId, callResult, processCode) 102 #define DEV_AUTH_REPORT_UE_CALL_EVENT(osAccountId, groupType, appId, funcName) \ 103 DevAuthReportUeCallEvent(osAccountId, groupType, appId, funcName) 104 #define DEV_AUTH_REPORT_UE_CALL_EVENT_BY_PARAMS(osAccountId, inParams, appId, funcName) \ 105 DevAuthReportUeCallEventByParams(osAccountId, inParams, appId, funcName) 114 int32_t osAccountId; member [all...] |
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/frameworks/os_account_adapter/ |
H A D | os_account_adapter_test.cpp | 121 static void CreateDemoGroup(int32_t osAccountId, int64_t reqId, const char *appId, const char *createParams) in CreateDemoGroup() argument 125 int32_t ret = gm->createGroup(osAccountId, reqId, appId, createParams); in CreateDemoGroup() 209 static void CreateDemoIdenticalAccountGroup(int32_t osAccountId, const char *userId, in CreateDemoIdenticalAccountGroup() argument 232 ret = gm->createGroup(osAccountId, TEST_REQ_ID, TEST_APP_ID, jsonStr); in CreateDemoIdenticalAccountGroup() 284 static void OnOsAccountUnlocked(int32_t osAccountId) in OnOsAccountUnlocked() argument 286 (void)osAccountId; in OnOsAccountUnlocked() 289 static void OnOsAccountRemoved(int32_t osAccountId) in OnOsAccountRemoved() argument 291 (void)osAccountId; in OnOsAccountRemoved() 294 static void PublicCommonEvent(bool isUserUnlockEvent, int32_t osAccountId) in PublicCommonEvent() argument 303 commonData.SetCode(osAccountId); in PublicCommonEvent() 336 int32_t osAccountId = DevAuthGetRealOsAccountLocalId(ANY_OS_ACCOUNT); HWTEST_F() local 368 int32_t osAccountId = DevAuthGetRealOsAccountLocalId(ANY_OS_ACCOUNT); HWTEST_F() local [all...] |
/base/security/device_auth/services/identity_manager/src/mock/ |
H A D | cert_operation_mock.c | 20 int32_t osAccountId, const char *groupId, const char *deviceId, bool isUdid, IdentityInfo *info) in GetAccountRelatedCredInfo() 22 (void)osAccountId; in GetAccountRelatedCredInfo() 30 int32_t GetAccountAsymSharedSecret(int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo, in GetAccountAsymSharedSecret() argument 33 (void)osAccountId; in GetAccountAsymSharedSecret() 48 int32_t GetAccountAsymCredInfo(int32_t osAccountId, const CertInfo *certInfo, IdentityInfo **returnInfo) in GetAccountAsymCredInfo() argument 50 (void)osAccountId; in GetAccountAsymCredInfo() 19 GetAccountRelatedCredInfo( int32_t osAccountId, const char *groupId, const char *deviceId, bool isUdid, IdentityInfo *info) GetAccountRelatedCredInfo() argument
|
/base/security/device_auth/interfaces/inner_api/ |
H A D | device_auth.h | 67 #define FIELD_OS_ACCOUNT_ID "osAccountId" 227 int32_t (*authDevice)(int32_t osAccountId, int64_t authReqId, const char *authParams, 232 int32_t (*getRealInfo)(int32_t osAccountId, const char *pseudonymId, char **realInfo); 234 int32_t (*getPseudonymId)(int32_t osAccountId, const char *indexKey, char **pseudonymId); 247 int32_t (*createGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *createParams); 249 int32_t (*deleteGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *disbandParams); 251 int32_t (*addMemberToGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *addParams); 253 int32_t (*deleteMemberFromGroup)(int32_t osAccountId, int64_t requestId, const char *appId, 258 int32_t (*addMultiMembersToGroup)(int32_t osAccountId, const char *appId, const char *addParams); 260 int32_t (*delMultiMembersFromGroup)(int32_t osAccountId, cons [all...] |
/base/security/device_auth/services/identity_manager/src/ |
H A D | cert_operation.c | 129 static int32_t GetSelfUserId(int32_t osAccountId, char *userId, uint32_t userIdLen) in GetSelfUserId() argument 135 if (QueryGroups(osAccountId, &queryParams, &accountVec) != HC_SUCCESS) { in GetSelfUserId() 159 static void GetLocalIdenticalGroup(int32_t osAccountId, CJson *param, QueryGroupParams *queryParams, in GetLocalIdenticalGroup() argument 163 int32_t ret = GetSelfUserId(osAccountId, selfUserId, USER_ID_LEN); in GetLocalIdenticalGroup() 182 ->getAccountCandidateGroup(osAccountId, param, queryParams, groupEntryVec); in GetLocalIdenticalGroup() 188 static TrustedGroupEntry *GetSelfGroupEntryByPeerCert(int32_t osAccountId, const CertInfo *certInfo) in GetSelfGroupEntryByPeerCert() argument 223 ->getAccountCandidateGroup(osAccountId, param, &queryParams, &groupEntryVec); in GetSelfGroupEntryByPeerCert() 226 (void)GetLocalIdenticalGroup(osAccountId, param, &queryParams, &groupEntryVec); in GetSelfGroupEntryByPeerCert() 241 int32_t osAccountId, const CertInfo *certInfo, TrustedDeviceEntry *deviceEntry) in GetSelfDeviceEntryByPeerCert() 243 TrustedGroupEntry *groupEntry = GetSelfGroupEntryByPeerCert(osAccountId, certInf in GetSelfDeviceEntryByPeerCert() 240 GetSelfDeviceEntryByPeerCert( int32_t osAccountId, const CertInfo *certInfo, TrustedDeviceEntry *deviceEntry) GetSelfDeviceEntryByPeerCert() argument 254 VerifyPeerCertInfo(int32_t osAccountId, const char *selfUserId, const char *selfAuthId, const CertInfo *certInfo) VerifyPeerCertInfo() argument 310 GetSharedSecretForAccountInPake(int32_t osAccountId, const char *userId, const char *authId, const CertInfo *peerCertInfo, Uint8Buff *sharedSecret) GetSharedSecretForAccountInPake() argument 386 GetCertInfo(int32_t osAccountId, const char *userId, const char *authId, CertInfo *certInfo) GetCertInfo() argument 409 GetAccountAsymIdentityInfo( int32_t osAccountId, const char *userId, const char *authId, IdentityInfo *info, bool isNeedGeneratePdid) GetAccountAsymIdentityInfo() argument 442 GetLocalDeviceType(int32_t osAccountId, const CJson *in, const char *groupId, int32_t *localDevType) GetLocalDeviceType() argument 464 GenerateAuthTokenForAccessory(int32_t osAccountId, const char *groupId, Uint8Buff *authToken) GenerateAuthTokenForAccessory() argument 507 GenerateTokenAliasForController( int32_t osAccountId, const CJson *in, const char *groupId, Uint8Buff *authTokenAlias) GenerateTokenAliasForController() argument 542 int32_t osAccountId = INVALID_OS_ACCOUNT; GenerateAuthTokenByDevType() local 567 GetSelfAccountIdentityInfo( int32_t osAccountId, const char *groupId, IdentityInfo *info, bool isNeedGeneratePdid) GetSelfAccountIdentityInfo() argument 592 isNeedGeneratePdidByPeerCert(int32_t osAccountId, const CertInfo *certInfo) isNeedGeneratePdidByPeerCert() argument 616 GetAccountRelatedCredInfo( int32_t osAccountId, const char *groupId, const char *deviceId, bool isUdid, IdentityInfo *info) GetAccountRelatedCredInfo() argument 655 GetSharedSecretByPeerCertFromPlugin( int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo, Uint8Buff *sharedSecret) GetSharedSecretByPeerCertFromPlugin() argument 700 GetAccountAsymSharedSecret(int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo, Uint8Buff *sharedSecret) GetAccountAsymSharedSecret() argument 740 int32_t osAccountId; GetAccountSymSharedSecret() local 777 GetAccountAsymCredInfo(int32_t osAccountId, const CertInfo *certInfo, IdentityInfo **returnInfo) GetAccountAsymCredInfo() argument 820 int32_t osAccountId = INVALID_OS_ACCOUNT; GetAccountSymCredInfoByPeerUrl() local [all...] |
H A D | identity_group.c | 27 int32_t osAccountId, const CJson *in, bool isDeviceLevel, GroupEntryVec *vec) in GetAccountRelatedCandidateGroups() 37 ((AccountRelatedGroupAuth *)groupAuth)->getAccountCandidateGroup(osAccountId, in, &queryParams, vec); in GetAccountRelatedCandidateGroups() 49 int32_t ret = ExcuteCredMgrCmd(osAccountId, QUERY_SELF_CREDENTIAL_INFO, input, output); in GetAccountRelatedCandidateGroups() 59 static int32_t GetAccountUnrelatedCandidateGroups(int32_t osAccountId, bool isDeviceLevel, GroupEntryVec *vec) in GetAccountUnrelatedCandidateGroups() argument 66 return QueryGroups(osAccountId, &queryParams, vec); in GetAccountUnrelatedCandidateGroups() 69 static void GetGroupInfoByGroupId(int32_t osAccountId, const char *groupId, GroupEntryVec *groupEntryVec) in GetGroupInfoByGroupId() argument 73 int32_t ret = QueryGroups(osAccountId, &queryParams, groupEntryVec); in GetGroupInfoByGroupId() 79 static void GetCandidateGroups(int32_t osAccountId, const CJson *in, GroupEntryVec *groupEntryVec) in GetCandidateGroups() argument 84 int32_t ret = GetAccountRelatedCandidateGroups(osAccountId, in, isDeviceLevel, groupEntryVec); in GetCandidateGroups() 89 ret = GetAccountUnrelatedCandidateGroups(osAccountId, isDeviceLeve in GetCandidateGroups() 26 GetAccountRelatedCandidateGroups( int32_t osAccountId, const CJson *in, bool isDeviceLevel, GroupEntryVec *vec) GetAccountRelatedCandidateGroups() argument 95 IsDeviceInGroup( int32_t osAccountId, int32_t groupType, const char *deviceId, const char *groupId, bool isUdid) IsDeviceInGroup() argument 136 IsP2pAuthTokenExist(int32_t osAccountId, const TrustedDeviceEntry *deviceEntry) IsP2pAuthTokenExist() argument 163 GetAccountUnrelatedIdentityInfo( int32_t osAccountId, const char *groupId, const char *deviceId, bool isUdid, IdentityInfo *info) GetAccountUnrelatedIdentityInfo() argument 219 GetIdentityInfo(int32_t osAccountId, const TrustedGroupEntry *groupEntry, const char *deviceId, bool isUdid, IdentityInfo **returnInfo) GetIdentityInfo() argument 243 AddNoPseudonymIdentityInfo(int32_t osAccountId, const TrustedGroupEntry *groupEntry, const char *deviceId, bool isUdid, IdentityInfoVec *identityInfoVec) AddNoPseudonymIdentityInfo() argument 254 GetIdentityInfos( int32_t osAccountId, const CJson *in, const GroupEntryVec *groupEntryVec, IdentityInfoVec *identityInfoVec) GetIdentityInfos() argument 301 int32_t osAccountId = INVALID_OS_ACCOUNT; GetCredInfosByPeerIdentity() local 373 int32_t osAccountId = INVALID_OS_ACCOUNT; CheckAndGetP2pCredInfo() local 481 int32_t osAccountId = INVALID_OS_ACCOUNT; AuthGeneratePsk() local 552 GetSelfAuthIdAndUserType( int32_t osAccountId, const char *groupId, Uint8Buff *authIdBuff, int32_t *userType, int32_t *upgradeFlag) GetSelfAuthIdAndUserType() argument 639 CheckSelfKeyAlias(const Uint8Buff *selfKeyAlias, bool isSelfFromUpgrade, int32_t osAccountId, const char *groupId) CheckSelfKeyAlias() argument 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 724 int32_t osAccountId = INVALID_OS_ACCOUNT; GeneratePskAliasAndCheckExist() local 771 int32_t osAccountId; GetSharedSecretForP2pInPake() local 890 int32_t osAccountId = INVALID_OS_ACCOUNT; GetCredInfoByPeerCert() local 919 int32_t osAccountId = INVALID_OS_ACCOUNT; GetSharedSecretByPeerCert() local [all...] |
/base/security/device_auth/services/cred_manager/src/account_related/ |
H A D | account_related_cred_plugin.c | 23 static int32_t ProcessAsyTokens(int32_t osAccountId, int32_t cmdId, CJson *in, CJson *out) in ProcessAsyTokens() argument 28 return GetAccountAuthTokenManager()->addToken(osAccountId, cmdId, in); in ProcessAsyTokens() 41 return GetAccountAuthTokenManager()->deleteToken(osAccountId, userId, deviceId); in ProcessAsyTokens() 48 return GetAccountAuthTokenManager()->getRegisterProof(osAccountId, in, out); in ProcessAsyTokens() 55 static int32_t ProcessSymTokens(int32_t osAccountId, int32_t cmdId, CJson *in, CJson *out) in ProcessSymTokens() argument 61 return GetSymTokenManager()->addToken(osAccountId, cmdId, in); in ProcessSymTokens() 74 return GetSymTokenManager()->deleteToken(osAccountId, userId, deviceId); in ProcessSymTokens() 82 static int32_t ProcessAccountCredentials(int32_t osAccountId, int32_t cmdId, CJson *in, CJson *out) in ProcessAccountCredentials() argument 85 return ExcuteCredMgrCmd(osAccountId, cmdId, in, out); in ProcessAccountCredentials() 97 return ProcessAsyTokens(osAccountId, cmdI in ProcessAccountCredentials() [all...] |
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/ |
H A D | compatible_auth_sub_session_util.c | 69 int32_t osAccountId = ANY_OS_ACCOUNT; in CombineAuthConfirmData() local 70 (void)GetIntFromJson(confirmationJson, FIELD_OS_ACCOUNT_ID, &osAccountId); in CombineAuthConfirmData() 71 osAccountId = DevAuthGetRealOsAccountLocalId(osAccountId); in CombineAuthConfirmData() 72 if (osAccountId == INVALID_OS_ACCOUNT) { in CombineAuthConfirmData() 76 if (!CheckIsForegroundOsAccountId(osAccountId)) { in CombineAuthConfirmData() 80 if (AddIntToJson(dataFromClient, FIELD_OS_ACCOUNT_ID, osAccountId) != HC_SUCCESS) { in CombineAuthConfirmData()
|
/base/security/device_auth/services/legacy/group_auth/inc/ |
H A D | group_auth_data_operation.h | 25 bool GaIsGroupAccessible(int32_t osAccountId, const char *groupId, const char *appId); 26 int32_t GaGetTrustedDeviceEntryById(int32_t osAccountId, const char *deviceId, 28 bool GaIsDeviceInGroup(int32_t groupType, int32_t osAccountId, const char *peerUdid, const char *peerAuthId, 30 int32_t GaGetLocalDeviceInfo(int32_t osAccountId, const char *groupId, TrustedDeviceEntry *localAuthInfo);
|
/base/security/device_auth/services/data_manager/inc/ |
H A D | data_manager.h | 85 void ReloadOsAccountDb(int32_t osAccountId); 86 int32_t AddGroup(int32_t osAccountId, const TrustedGroupEntry *groupEntry); 87 int32_t DelGroup(int32_t osAccountId, const QueryGroupParams *params); 88 int32_t AddTrustedDevice(int32_t osAccountId, const TrustedDeviceEntry *deviceEntry); 89 int32_t DelTrustedDevice(int32_t osAccountId, const QueryDeviceParams *params); 90 int32_t QueryGroups(int32_t osAccountId, const QueryGroupParams *params, GroupEntryVec *vec); 91 int32_t QueryDevices(int32_t osAccountId, const QueryDeviceParams *params, DeviceEntryVec *vec); 92 int32_t SaveOsAccountDb(int32_t osAccountId);
|
/base/security/device_auth/services/frameworks/src/hiview_adapter/ |
H A D | hisysevent_adapter.cpp | 50 STR_OS_ACCOUNT_ID, eventData.osAccountId, in DevAuthReportCallEvent() 72 void DevAuthReportCallEventWithResult(const char *appId, const char *funcName, const int32_t osAccountId, in DevAuthReportCallEventWithResult() argument 78 eventData.osAccountId = osAccountId; in DevAuthReportCallEventWithResult() 100 void DevAuthReportUeCallEvent(int32_t osAccountId, int32_t groupType, const char *appId, const char *funcName) in DevAuthReportUeCallEvent() argument 107 STR_OS_ACCOUNT_ID, osAccountId, in DevAuthReportUeCallEvent() 113 void DevAuthReportUeCallEventByParams(int32_t osAccountId, const char *inParams, const char *appId, in DevAuthReportUeCallEventByParams() argument 122 DEV_AUTH_REPORT_UE_CALL_EVENT(osAccountId, groupType, appId, funcName); in DevAuthReportUeCallEventByParams()
|