/ohos5.0/base/security/device_auth/services/legacy/group_manager/src/group_operation/ |
H A D | group_operation.c | 243 .osAccountId = osAccountId, in GetPkByParams() 482 osAccountId = DevAuthGetRealOsAccountLocalId(osAccountId); in CreateGroupInner() 517 eventData.osAccountId = osAccountId; in BuildCallEventData() 563 osAccountId = DevAuthGetRealOsAccountLocalId(osAccountId); in DeleteGroupInner() 611 osAccountId = DevAuthGetRealOsAccountLocalId(osAccountId); in DeleteMemberFromGroupInner() 659 osAccountId = DevAuthGetRealOsAccountLocalId(osAccountId); in AddMultiMembersToGroupInner() 707 eventData.osAccountId = osAccountId; in DevAuthReportCallEventWithResult() 736 osAccountId = DevAuthGetRealOsAccountLocalId(osAccountId); in DelMultiMembersFromGroupInner() 858 osAccountId = DevAuthGetRealOsAccountLocalId(osAccountId); in CheckAccessToGroup() 1231 task->osAccountId = taskParams->osAccountId; in InitGroupManagerTask() [all …]
|
/ohos5.0/base/security/device_auth/services/legacy/group_manager/src/group_operation/identical_account_group/ |
H A D | identical_account_group.c | 285 DelAllPeerTokens(osAccountId, &deviceList); in DelAcrossAccountGroupAndTokens() 332 DelAllTokens(osAccountId, &deviceList); in DelGroupAndTokens() 459 res = ImportSelfToken(osAccountId, jsonParams); in AddGroupAndToken() 462 (void)DelGroupFromDb(osAccountId, groupId); in AddGroupAndToken() 468 (void)DelGroupFromDb(osAccountId, groupId); in AddGroupAndToken() 469 (void)DelSelfToken(osAccountId, jsonParams); in AddGroupAndToken() 472 res = SaveOsAccountDb(osAccountId); in AddGroupAndToken() 475 (void)DelGroupFromDb(osAccountId, groupId); in AddGroupAndToken() 643 res = SaveOsAccountDb(osAccountId); in AddMetaNodeDeviceToGroup() 690 res = SaveOsAccountDb(osAccountId); in AddMultiMembersToGroup() [all …]
|
/ohos5.0/base/security/device_auth/services/legacy/group_manager/src/ |
H A D | group_manager.c | 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 *deletePara… in DelMultiMembersFromGroupImpl() argument 81 int32_t CheckAccessToGroupImpl(int32_t osAccountId, const char *appId, const char *groupId) in CheckAccessToGroupImpl() argument 84 … return IsGroupSupport() ? GetGroupImplInstance()->checkAccessToGroup(osAccountId, appId, groupId) in CheckAccessToGroupImpl() 95 int32_t GetGroupInfoImpl(int32_t osAccountId, const char *appId, const char *queryParams, in GetGroupInfoImpl() argument 103 int32_t GetJoinedGroupsImpl(int32_t osAccountId, const char *appId, int groupType, in GetJoinedGroupsImpl() argument 111 int32_t GetRelatedGroupsImpl(int32_t osAccountId, const char *appId, const char *peerDeviceId, in GetRelatedGroupsImpl() argument 128 int32_t GetTrustedDevicesImpl(int32_t osAccountId, const char *appId, const char *groupId, in GetTrustedDevicesImpl() argument 143 int32_t GetPkInfoListImpl(int32_t osAccountId, const char *appId, const char *queryParams, in GetPkInfoListImpl() argument [all …]
|
/ohos5.0/base/security/device_auth/services/privacy_enhancement/src/ |
H A D | pseudonym_manager.c | 45 int32_t osAccountId; member 205 if (osAccountId == DEFAULT_OS_ACCOUNT) { in GetPseudonymPathDe() 402 info.osAccountId = osAccountId; in LoadOsAccountPseudonymDb() 419 LoadOsAccountPseudonymDb(osAccountId); in OnOsAccountUnlocked() 428 if (info->osAccountId == osAccountId) { in RemoveOsAccountPseudonymInfo() 450 if (info->osAccountId == osAccountId) { in IsOsAccountDataLoaded() 463 LoadOsAccountPseudonymDb(osAccountId); in LoadDataIfNotLoaded() 469 LoadDataIfNotLoaded(osAccountId); in GetPseudonymInfoByOsAccountId() 474 if (info->osAccountId == osAccountId) { in GetPseudonymInfoByOsAccountId() 480 newInfo.osAccountId = osAccountId; in GetPseudonymInfoByOsAccountId() [all …]
|
/ohos5.0/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 beginPath, osAccountId) <= 0) { in GetTokensFilePathCe() 435 info.osAccountId = osAccountId; in LoadOsSymTokensDb() 461 info.osAccountId = osAccountId; in TryMoveDeDataToCe() 497 if (info->osAccountId == osAccountId) { in RemoveOsSymTokensInfo() 508 TryMoveDeDataToCe(osAccountId); in LoadOsSymTokensDbCe() 510 LoadOsSymTokensDb(osAccountId); in LoadOsSymTokensDbCe() 534 if (info->osAccountId == osAccountId) { in IsOsAccountDataLoaded() 558 if (info->osAccountId == osAccountId) { in GetTokensInfoByOsAccountId() 564 newInfo.osAccountId = osAccountId; in GetTokensInfoByOsAccountId() [all …]
|
H A D | asy_token_manager.c | 36 int32_t osAccountId; member 102 beginPath, osAccountId) <= 0) { in GetTokenPathCe() 912 info.osAccountId = osAccountId; in LoadOsAccountTokenDb() 938 info.osAccountId = osAccountId; in TryMoveDeDataToCe() 974 if (info->osAccountId == osAccountId) { in RemoveOsAccountTokenInfo() 985 TryMoveDeDataToCe(osAccountId); in LoadOsAccountTokenDbCe() 987 LoadOsAccountTokenDb(osAccountId); in LoadOsAccountTokenDbCe() 1011 if (info->osAccountId == osAccountId) { in IsOsAccountDataLoaded() 1035 if (info->osAccountId == osAccountId) { in GetTokenInfoByOsAccountId() 1041 newInfo.osAccountId = osAccountId; in GetTokenInfoByOsAccountId() [all …]
|
/ohos5.0/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() 27 (void)osAccountId; in GenerateMk() 33 int32_t DeleteMk(int32_t osAccountId, const char *peerDeviceId) in DeleteMk() argument 35 (void)osAccountId; in DeleteMk() 42 (void)osAccountId; in GeneratePseudonymPsk() 48 int32_t DeletePseudonymPsk(int32_t osAccountId, const char *peerDeviceId) in DeletePseudonymPsk() argument 50 (void)osAccountId; in DeletePseudonymPsk() 58 (void)osAccountId; in GenerateAndSavePseudonymId() 66 int32_t GetDevicePubKey(int32_t osAccountId, Uint8Buff *devicePk) in GetDevicePubKey() argument [all …]
|
/ohos5.0/base/security/device_auth/services/legacy/group_manager/src/group_operation/peer_to_peer_group/ |
H A D | peer_to_peer_group.c | 36 int32_t result = QueryGroups(osAccountId, &queryParams, &groupEntryVec); in IsSameNameGroupExist() 57 if (IsSameNameGroupExist(osAccountId, appId, groupName)) { in CheckGroupName() 178 ((result = SaveOsAccountDb(osAccountId)) != HC_SUCCESS)) { in CreateGroupInner() 210 int32_t result = DelTrustedDevice(osAccountId, &queryDeviceParams); in DelPeerDevAndKeyInfo() 226 .osAccountId = osAccountId, in DelPeerDevAndKeyInfo() 306 int32_t result = DelGroupFromDb(osAccountId, groupId); in DelGroupAndSelfKeyInfo() 339 int32_t osAccountId; in HandleLocalUnbind() local 344 int result = DelPeerDevAndKeyInfo(osAccountId, groupId, peerAuthId); in HandleLocalUnbind() 348 result = SaveOsAccountDb(osAccountId); in HandleLocalUnbind() 399 int32_t osAccountId; in CheckDeletePeerStatus() local [all …]
|
/ohos5.0/base/security/device_auth/services/legacy/group_manager/inc/ |
H A D | group_operation_common.h | 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); 73 int32_t DelGroupFromDb(int32_t osAccountId, const char *groupId); 81 uint32_t GetCurDeviceNumByGroupId(int32_t osAccountId, const char *groupId); 91 bool IsGroupExistByGroupId(int32_t osAccountId, const char *groupId); 92 bool IsGroupOwner(int32_t osAccountId, const char *groupId, const char *appId); 94 int32_t CheckGroupAccessible(int32_t osAccountId, const char *groupId, const char *appId); 98 int32_t GetRelatedGroups(int32_t osAccountId, const char *peerDeviceId, bool isUdid, [all …]
|
H A D | group_manager.h | 29 int32_t CreateGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea… 30 int32_t DeleteGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *disb… 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 *deletePara… 39 int32_t CheckAccessToGroupImpl(int32_t osAccountId, const char *appId, const char *groupId); 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, const char *appId, const char *peerDeviceId, 49 int32_t GetTrustedDevicesImpl(int32_t osAccountId, const char *appId, const char *groupId, 51 bool IsDeviceInGroupImpl(int32_t osAccountId, const char *appId, const char *groupId, const char *d… [all …]
|
H A D | group_operation.h | 32 …int32_t (*createGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea… 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, const char *appId, const char *peerDevi… 49 int32_t (*getAccessibleDeviceInfoById)(int32_t osAccountId, const char *appId, 51 …int32_t (*getAccessibleTrustedDevices)(int32_t osAccountId, const char *appId, const char *groupId, [all …]
|
/ohos5.0/base/security/device_auth/services/legacy/group_manager/src/group_operation/across_account_group/ |
H A D | across_account_group.c | 192 result = QueryGroups(osAccountId, ¶ms, &groupEntryVec); in AssertIdenticalGroupExist() 321 res = DelPeerDeviceToken(osAccountId, *entry); in DelAllPeerTokens() 332 int32_t res = DelGroupFromDb(osAccountId, groupId); in DelGroupAndTokens() 333 DelAllPeerTokens(osAccountId, &deviceList); in DelGroupAndTokens() 365 return DelTrustedDevice(osAccountId, &queryDeviceParams); in DelDeviceById() 450 res = DelPeerDeviceToken(osAccountId, entry); in DelPeerDeviceAndToken() 468 (void)DelGroupFromDb(osAccountId, groupId); in AddGroupAndLocalDev() 471 res = SaveOsAccountDb(osAccountId); in AddGroupAndLocalDev() 474 (void)DelGroupFromDb(osAccountId, groupId); in AddGroupAndLocalDev() 596 res = SaveOsAccountDb(osAccountId); in AddMultiMembersToGroup() [all …]
|
/ohos5.0/base/security/device_auth/services/identity_manager/src/ |
H A D | identity_group.c | 66 return QueryGroups(osAccountId, &queryParams, vec); in GetAccountUnrelatedCandidateGroups() 277 if (!GaIsGroupAccessible(osAccountId, groupId, pkgName)) { in GetIdentityInfos() 301 int32_t osAccountId = INVALID_OS_ACCOUNT; in GetCredInfosByPeerIdentity() local 313 GetCandidateGroups(osAccountId, in, &groupEntryVec); in GetCredInfosByPeerIdentity() 373 int32_t osAccountId = INVALID_OS_ACCOUNT; in CheckAndGetP2pCredInfo() local 384 int32_t ret = CheckGroupExist(osAccountId, groupId); in CheckAndGetP2pCredInfo() 481 int32_t osAccountId = INVALID_OS_ACCOUNT; in AuthGeneratePsk() local 724 int32_t osAccountId = INVALID_OS_ACCOUNT; in GeneratePskAliasAndCheckExist() local 771 int32_t osAccountId; in GetSharedSecretForP2pInPake() local 890 int32_t osAccountId = INVALID_OS_ACCOUNT; in GetCredInfoByPeerCert() local [all …]
|
H A D | cert_operation.c | 159 int32_t ret = GetSelfUserId(osAccountId, selfUserId, USER_ID_LEN); in GetLocalIdenticalGroup() 245 int32_t ret = GetSelfDeviceEntry(osAccountId, groupId, deviceEntry); in GetSelfDeviceEntryByPeerCert() 445 int32_t ret = GetPeerDeviceEntry(osAccountId, in, groupId, deviceEntry); in GetLocalDeviceType() 467 int32_t ret = GetSelfDeviceEntry(osAccountId, groupId, deviceEntry); in GenerateAuthTokenForAccessory() 511 int32_t ret = GetPeerDeviceEntry(osAccountId, in, groupId, deviceEntry); in GenerateTokenAliasForController() 538 int32_t osAccountId = INVALID_OS_ACCOUNT; in GenerateAuthTokenByDevType() local 571 int32_t ret = GetSelfDeviceEntry(osAccountId, groupId, deviceEntry); in GetSelfAccountIdentityInfo() 606 (void)osAccountId; in isNeedGeneratePdidByPeerCert() 736 int32_t osAccountId; in GetAccountSymSharedSecret() local 816 int32_t osAccountId = INVALID_OS_ACCOUNT; in GetAccountSymCredInfoByPeerUrl() local [all …]
|
/ohos5.0/foundation/distributedhardware/device_manager/test/unittest/mock/ |
H A D | device_auth.h | 156 int32_t (*authDevice)(int32_t osAccountId, int64_t authReqId, const char *authParams, 169 int32_t (*deleteMemberFromGroup)(int32_t osAccountId, int64_t requestId, const char *appId, 172 … int32_t (*addMultiMembersToGroup)(int32_t osAccountId, const char *appId, const char *addParams); 173 …int32_t (*delMultiMembersFromGroup)(int32_t osAccountId, const char *appId, const char *deletePara… 183 int32_t (*checkAccessToGroup)(int32_t osAccountId, const char *appId, const char *groupId); 188 int32_t (*deleteGroupManager)(int32_t osAccountId, const char *appId, const char *groupId, 193 int32_t (*getGroupFriends)(int32_t osAccountId, const char *appId, const char *groupId, 196 int32_t (*getGroupInfo)(int32_t osAccountId, const char *appId, const char *queryParams, 198 int32_t (*getJoinedGroups)(int32_t osAccountId, const char *appId, int groupType, 200 int32_t (*getRelatedGroups)(int32_t osAccountId, const char *appId, const char *peerDeviceId, [all …]
|
/ohos5.0/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/frameworks/os_account_adapter/ |
H A D | os_account_adapter_test.cpp | 286 (void)osAccountId; in OnOsAccountUnlocked() 289 static void OnOsAccountRemoved(int32_t osAccountId) in OnOsAccountRemoved() argument 291 (void)osAccountId; in OnOsAccountRemoved() 303 commonData.SetCode(osAccountId); in PublicCommonEvent() 337 EXPECT_NE(osAccountId, INVALID_OS_ACCOUNT); 339 EXPECT_EQ(osAccountId, INVALID_OS_ACCOUNT); 341 EXPECT_EQ(osAccountId, INVALID_OS_ACCOUNT); 369 EXPECT_NE(osAccountId, INVALID_OS_ACCOUNT); 376 bool status = IsOsAccountUnlocked(osAccountId); 378 PublicCommonEvent(true, osAccountId); [all …]
|
/ohos5.0/foundation/distributedhardware/device_manager/test/commonunittest/ |
H A D | UTTest_hichain_auth_connector.cpp | 96 int32_t osAccountId = 0; variable 107 int32_t osAccountId = 0; variable 243 int32_t osAccountId = 0; variable 252 int32_t osAccountId = 0; variable 263 int32_t osAccountId = 0; variable 274 int32_t osAccountId = 0; variable 285 int32_t osAccountId = 0; variable 296 int32_t osAccountId = 0; variable 307 int32_t osAccountId = 0; variable 404 int32_t osAccountId = 0; variable [all …]
|
/ohos5.0/base/security/device_auth/interfaces/inner_api/ |
H A D | device_auth.h | 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); 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, const char *appId, const char *deletePara… 264 int32_t (*checkAccessToGroup)(int32_t osAccountId, const char *appId, const char *groupId); 271 int32_t (*getGroupInfo)(int32_t osAccountId, const char *appId, const char *queryParams, 274 int32_t (*getJoinedGroups)(int32_t osAccountId, const char *appId, int groupType, 277 int32_t (*getRelatedGroups)(int32_t osAccountId, const char *appId, const char *peerDeviceId, [all …]
|
/ohos5.0/base/security/device_auth/services/legacy/group_manager/src/group_operation/group_operation_common/ |
H A D | group_operation_common.c | 280 return QueryGroups(osAccountId, params, returnGroupEntryVec); in GetGroupInfo() 287 return QueryGroups(osAccountId, ¶ms, returnGroupEntryVec); in GetJoinedGroups() 718 if (IsGroupExistByGroupId(osAccountId, groupId)) { in AssertSameGroupNotExist() 744 int32_t CheckGroupExist(int32_t osAccountId, const char *groupId) in CheckGroupExist() argument 750 if (!IsGroupExistByGroupId(osAccountId, groupId)) { in CheckGroupExist() 776 result = AddGroup(osAccountId, groupParams); in AddGroupToDatabaseByJson() 803 result = AddTrustedDevice(osAccountId, devParams); in AddDeviceToDatabaseByJson() 811 int32_t DelGroupFromDb(int32_t osAccountId, const char *groupId) in DelGroupFromDb() argument 825 if (DelGroup(osAccountId, &queryGroupParams) != HC_SUCCESS) { in DelGroupFromDb() 828 if (SaveOsAccountDb(osAccountId) != HC_SUCCESS) { in DelGroupFromDb() [all …]
|
/ohos5.0/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, cmdId, in, out); in ProcessAccountCredentials() [all …]
|
/ohos5.0/base/security/device_auth/services/data_manager/src/ |
H A D | data_manager.c | 122 int32_t osAccountId; member 521 info.osAccountId = osAccountId; in LoadOsAccountDb() 587 if (info->osAccountId == osAccountId) { in RemoveOsAccountTrustedInfo() 599 TryMoveDeDataToCe(osAccountId); in LoadOsAccountDbCe() 601 LoadOsAccountDb(osAccountId); in LoadOsAccountDbCe() 689 LoadOsAccountDbCe(osAccountId); in OnOsAccountUnlocked() 707 if (info->osAccountId == osAccountId) { in IsOsAccountDataLoaded() 720 LoadOsAccountDbCe(osAccountId); in LoadDataIfNotLoaded() 731 if (info->osAccountId == osAccountId) { in GetTrustedInfoByOsAccountId() 737 newInfo.osAccountId = osAccountId; in GetTrustedInfoByOsAccountId() [all …]
|
/ohos5.0/base/security/device_auth/services/ |
H A D | device_auth.c | 231 int32_t osAccountId; in AddGroupInfoToContextByDb() local 262 int32_t osAccountId; in AddDevInfoToContextByDb() local 606 osAccountId = DevAuthGetRealOsAccountLocalId(osAccountId); in AddMemberToGroupInner() 611 if (!IsOsAccountUnlocked(osAccountId)) { in AddMemberToGroupInner() 616 requestId, osAccountId, appId); in AddMemberToGroupInner() 695 int32_t osAccountId = ANY_OS_ACCOUNT; in AddOsAccountIdToContextIfValid() local 697 osAccountId = DevAuthGetRealOsAccountLocalId(osAccountId); in AddOsAccountIdToContextIfValid() 698 LOGI("[OsAccountId]: %d", osAccountId); in AddOsAccountIdToContextIfValid() 908 osAccountId = DevAuthGetRealOsAccountLocalId(osAccountId); in AuthDevice() 976 int32_t osAccountId = ANY_OS_ACCOUNT; in BuildServerAuthContext() local [all …]
|
/ohos5.0/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 PseudonymKe… 37 int32_t GetDevicePubKey(int32_t osAccountId, Uint8Buff *devicePk);
|
/ohos5.0/base/security/device_auth/services/frameworks/inc/hiview_adapter/ |
H A D | hisysevent_adapter.h | 71 #define DEV_AUTH_REPORT_UE_CALL_EVENT(osAccountId, groupType, appId, funcName) argument 72 #define DEV_AUTH_REPORT_UE_CALL_EVENT_BY_PARAMS(osAccountId, inParams, appId, funcName) argument 81 #define DEV_AUTH_REPORT_UE_CALL_EVENT(osAccountId, groupType, appId, funcName) \ argument 82 DevAuthReportUeCallEvent(osAccountId, groupType, appId, funcName) 83 #define DEV_AUTH_REPORT_UE_CALL_EVENT_BY_PARAMS(osAccountId, inParams, appId, funcName) \ argument 84 DevAuthReportUeCallEventByParams(osAccountId, inParams, appId, funcName) 93 int32_t osAccountId; member 114 void DevAuthReportUeCallEvent(int32_t osAccountId, int32_t groupType, const char *appId, 116 void DevAuthReportUeCallEventByParams(int32_t osAccountId, const char *inParams, const char *appId,
|
/ohos5.0/base/security/device_auth/services/mk_agree/src/ |
H A D | key_manager.c | 161 int32_t GenerateDeviceKeyPair(int32_t osAccountId) in GenerateDeviceKeyPair() argument 170 if (GetLoaderInstance()->checkKeyExist(&keyAliasBuff, false, osAccountId) == HC_SUCCESS) { in GenerateDeviceKeyPair() 194 int32_t GenerateMk(int32_t osAccountId, const char *peerDeviceId, const Uint8Buff *peerPubKey) in GenerateMk() argument 226 int32_t DeleteMk(int32_t osAccountId, const char *peerDeviceId) in DeleteMk() argument 239 if (GetLoaderInstance()->checkKeyExist(&mkAliasBuff, false, osAccountId) != HC_SUCCESS) { in DeleteMk() 243 res = GetLoaderInstance()->deleteKey(&mkAliasBuff, false, osAccountId); in DeleteMk() 277 res = KeyDerivation(osAccountId, &mkAliasBuff, salt, true, &pskBuff); in GeneratePseudonymPsk() 294 int32_t DeletePseudonymPsk(int32_t osAccountId, const char *peerDeviceId) in DeletePseudonymPsk() argument 307 if (GetLoaderInstance()->checkKeyExist(&pskAliasBuff, false, osAccountId) != HC_SUCCESS) { in DeletePseudonymPsk() 311 res = GetLoaderInstance()->deleteKey(&pskAliasBuff, false, osAccountId); in DeletePseudonymPsk() [all …]
|