Home
last modified time | relevance | path

Searched refs:authToken (Results 1 – 25 of 56) sorted by relevance

123

/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_secure_access.c336 struct HksUserAuthToken *authToken = NULL; in ParseAuthToken() local
338 authToken = (struct HksUserAuthToken *)HksMalloc(sizeof(struct HksUserAuthToken)); in ParseAuthToken()
339 if (authToken == NULL) { in ParseAuthToken()
345 …(void)memcpy_s(authToken, sizeof(struct HksUserAuthToken), inAuthTokenParam->data, inAuthTokenPara… in ParseAuthToken()
346 *outAuthToken = authToken; in ParseAuthToken()
350 HKS_FREE_PTR(authToken); in ParseAuthToken()
354 static int32_t GetAuthToken(const struct HksParamSet *paramSet, struct HksUserAuthToken **authToken) in GetAuthToken() argument
360 ret = ParseAuthToken(&authTokenParam->blob, authToken); in GetAuthToken()
386 … VerifyCustomChallenge(const struct HuksKeyNode *keyNode, const struct HksUserAuthToken *authToken) in VerifyCustomChallenge() argument
392 return HksVerifyKeyChallenge(keyNode, authToken, pos, BYTES_PER_POS); in VerifyCustomChallenge()
[all …]
/base/account/os_account/test/fuzztest/iamaccount/deluser_fuzzer/
Ddeluser_fuzzer.cpp42 std::vector<uint8_t> authToken = {static_cast<uint8_t>(size)}; in DelUserFuzzTest() local
44 AccountIAMClient::GetInstance().DelUser(userId, authToken, callback); in DelUserFuzzTest()
/base/account/os_account/test/fuzztest/iamaccount/delcred_fuzzer/
Ddelcred_fuzzer.cpp43 std::vector<uint8_t> authToken = {static_cast<uint8_t>(size)}; in DelCredFuzzTest() local
45 AccountIAMClient::GetInstance().DelCred(userId, credentialId, authToken, callback); in DelCredFuzzTest()
/base/account/os_account/frameworks/account_iam/test/unittest/src/
Daccount_iam_mgr_proxy_test.cpp79 const std::vector<uint8_t> authToken = {0, 0}; variable
85 accountIAMMgrProxy->DelCred(TEST_USER_ID, 0, authToken, nullptr);
86 accountIAMMgrProxy->DelUser(TEST_USER_ID, authToken, nullptr);
/base/useriam/user_auth_framework/services/core/inc/
Duser_idm_database.h36 … const std::vector<uint8_t> &authToken, std::shared_ptr<CredentialInfoInterface> &credInfo) = 0;
37 virtual int32_t DeleteUser(int32_t userId, const std::vector<uint8_t> &authToken,
/base/useriam/user_auth_framework/services/core/src/
Duser_idm_database_impl.h35 … DeleteCredentialInfo(int32_t userId, uint64_t credentialId, const std::vector<uint8_t> &authToken,
37 int32_t DeleteUser(int32_t userId, const std::vector<uint8_t> &authToken,
Duser_idm_database_impl.cpp100 const std::vector<uint8_t> &authToken, std::shared_ptr<CredentialInfoInterface> &credInfo) in DeleteCredentialInfo() argument
110 int32_t ret = hdi->DeleteCredential(userId, credentialId, authToken, hdiInfo); in DeleteCredentialInfo()
125 int32_t UserIdmDatabaseImpl::DeleteUser(int32_t userId, const std::vector<uint8_t> &authToken, in DeleteUser() argument
136 int32_t ret = hdi->DeleteUser(userId, authToken, hdiInfos); in DeleteUser()
/base/security/device_auth/services/creds_manager/src/account_related/
Daccount_related_creds_manager.c297 …t32_t GenerateAuthTokenForAccessory(int32_t osAccountId, const char *groupId, Uint8Buff *authToken) in GenerateAuthTokenForAccessory() argument
321 authToken->val = (uint8_t *)HcMalloc(AUTH_TOKEN_SIZE, 0); in GenerateAuthTokenForAccessory()
322 if (authToken->val == NULL) { in GenerateAuthTokenForAccessory()
327 authToken->length = AUTH_TOKEN_SIZE; in GenerateAuthTokenForAccessory()
330 ret = GetLoaderInstance()->computeHkdf(&keyAlias, &userIdBuff, &challenge, authToken, true); in GenerateAuthTokenForAccessory()
334 FreeBuffData(authToken); in GenerateAuthTokenForAccessory()
371 …tic int32_t GenerateAuthTokenByDevType(const CJson *in, const CJson *urlJson, Uint8Buff *authToken, in GenerateAuthTokenByDevType() argument
392 ret = GenerateAuthTokenForAccessory(osAccountId, groupId, authToken); in GenerateAuthTokenByDevType()
394 ret = GenerateTokenAliasForController(osAccountId, in, groupId, authToken); in GenerateAuthTokenByDevType()
568 Uint8Buff authToken = { NULL, 0 }; in GetAccountSymSharedSecret() local
[all …]
/base/useriam/user_auth_framework/test/fuzztest/clients/useridmclient_fuzzer/
Duser_idm_client_fuzzer.cpp121 std::vector<uint8_t> authToken; in FuzzClientDeleteCredential() local
122 Common::FillFuzzUint8Vector(parcel, authToken); in FuzzClientDeleteCredential()
124 UserIdmClient::GetInstance().DeleteCredential(userId, credentialId, authToken, callback); in FuzzClientDeleteCredential()
132 std::vector<uint8_t> authToken; in FuzzClientDeleteUser() local
133 Common::FillFuzzUint8Vector(parcel, authToken); in FuzzClientDeleteUser()
135 UserIdmClient::GetInstance().DeleteUser(userId, authToken, callback); in FuzzClientDeleteUser()
/base/useriam/user_auth_framework/test/unittest/services/mocks/
Dmock_iuser_auth_interface.h42 int32_t(int32_t userId, const std::vector<uint8_t> &authToken, const HdiEnrollParam &param,
48 …int32_t(int32_t userId, uint64_t credentialId, const std::vector<uint8_t> &authToken, HdiCredentia…
54 …int32_t(int32_t userId, const std::vector<uint8_t> &authToken, std::vector<HdiCredentialInfo> &del…
71 int32_t(int32_t userId, const std::vector<uint8_t> &authToken, const HdiEnrollParam &param,
Dmock_user_idm_service.h39 MOCK_METHOD3(DelUser, void(int32_t userId, const std::vector<uint8_t> authToken,
42 … const std::vector<uint8_t> &authToken, const sptr<IdmCallbackInterface> &callback));
/base/account/os_account/test/fuzztest/iamaccount_stub/deluserstub_fuzzer/
Ddeluserstub_fuzzer.cpp50 std::vector<uint8_t> authToken = {static_cast<uint8_t>(size)}; in DelUserStubFuzzTest() local
63 if (!dataTemp.WriteUInt8Vector(authToken)) { in DelUserStubFuzzTest()
/base/useriam/user_auth_framework/test/fuzztest/services/useridmservice_fuzzer/
Duser_idm_service_fuzzer.cpp213 std::vector<uint8_t> authToken; in FuzzDelUser() local
214 FillFuzzUint8Vector(parcel, authToken); in FuzzDelUser()
216 g_UserIdmService.DelUser(userId, authToken, callback); in FuzzDelUser()
239 std::vector<uint8_t> authToken; in DelCredential() local
240 FillFuzzUint8Vector(parcel, authToken); in DelCredential()
242 g_UserIdmService.DelCredential(userId, credentialId, authToken, callback); in DelCredential()
/base/useriam/user_auth_framework/interfaces/inner_api/
Duser_idm_client.h107 …void DeleteCredential(int32_t userId, uint64_t credentialId, const std::vector<uint8_t> &authToken,
119 virtual void DeleteUser(int32_t userId, const std::vector<uint8_t> &authToken,
/base/security/huks/services/huks_standard/huks_engine/main/core/include/
Dhks_keyblob.h74 int32_t HksVerifyAuthTokenSign(const struct HksUserAuthToken *authToken);
76 int32_t HksDecryptAuthToken(struct HksUserAuthToken *authToken);
/base/account/os_account/test/fuzztest/iamaccount_stub/delcredstub_fuzzer/
Ddelcredstub_fuzzer.cpp51 std::vector<uint8_t> authToken = {static_cast<uint8_t>(size)}; in DelCredStubFuzzTest() local
67 if (!dataTemp.WriteUInt8Vector(authToken)) { in DelCredStubFuzzTest()
/base/useriam/user_auth_framework/frameworks/native/ipc/src/
Duser_idm_stub.cpp292 std::vector<uint8_t> authToken = {}; in DelUserStub() local
293 if (!data.ReadUInt8Vector(&authToken)) { in DelUserStub()
304 DelUser(userId, authToken, callback); in DelUserStub()
325 std::vector<uint8_t> authToken; in DelCredentialStub() local
326 if (!data.ReadUInt8Vector(&authToken)) { in DelCredentialStub()
337 DelCredential(userId, credentialId, authToken, callback); in DelCredentialStub()
/base/account/os_account/services/accountmgr/src/account_iam/
Daccount_iam_service.cpp81 …int32_t userId, uint64_t credentialId, const std::vector<uint8_t> &authToken, const sptr<IIDMCallb… in DelCred() argument
88 InnerAccountIAMManager::GetInstance().DelCred(userId, credentialId, authToken, callback); in DelCred()
92 int32_t userId, const std::vector<uint8_t> &authToken, const sptr<IIDMCallback> &callback) in DelUser() argument
99 InnerAccountIAMManager::GetInstance().DelUser(userId, authToken, callback); in DelUser()
Dinner_account_iam_manager.cpp100 …int32_t userId, uint64_t credentialId, const std::vector<uint8_t> &authToken, const sptr<IIDMCallb… in DelCred() argument
107 if (authToken.empty()) { in DelCred()
113 ErrCode result = UpdateUserKey(userId, 0, credentialId, authToken, secret); in DelCred()
118 auto idmCallback = std::make_shared<DelCredCallback>(userId, credentialId, authToken, callback); in DelCred()
119 UserIDMClient::GetInstance().DeleteCredential(userId, credentialId, authToken, idmCallback); in DelCred()
123 int32_t userId, const std::vector<uint8_t> &authToken, const sptr<IIDMCallback> &callback) in DelUser() argument
130 if (authToken.empty()) { in DelUser()
135 ErrCode result = RemoveUserKey(userId, authToken); in DelUser()
140 auto idmCallback = std::make_shared<DelCredCallback>(userId, 0, authToken, callback); in DelUser()
141 UserIDMClient::GetInstance().DeleteUser(userId, authToken, idmCallback); in DelUser()
/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/
Duser_idm_interface.h116 virtual void DelUser(int32_t userId, const std::vector<uint8_t> authToken,
130 const std::vector<uint8_t> &authToken, const sptr<IdmCallbackInterface> &callback) = 0;
/base/useriam/user_auth_framework/frameworks/native/ipc/inc/
Duser_idm_proxy.h42 void DelUser(int32_t userId, const std::vector<uint8_t> authToken,
45 const std::vector<uint8_t> &authToken, const sptr<IdmCallbackInterface> &callback) override;
/base/account/os_account/interfaces/innerkits/account_iam/native/include/
Diaccount_iam.h38 … virtual void DelCred(int32_t userId, uint64_t credentialId, const std::vector<uint8_t> &authToken,
41 … int32_t userId, const std::vector<uint8_t> &authToken, const sptr<IIDMCallback> &callback) = 0;
/base/account/os_account/services/accountmgr/include/account_iam/
Daccount_iam_service.h37 void DelCred(int32_t userId, uint64_t credentialId, const std::vector<uint8_t> &authToken,
39 …void DelUser(int32_t userId, const std::vector<uint8_t> &authToken, const sptr<IIDMCallback> &call…
/base/account/os_account/services/accountmgr/test/unittest/account_iam/
Daccount_iam_callback_test.cpp475 std::vector<uint8_t> authToken; variable
476 auto delCredCallback = std::make_shared<DelCredCallback>(TEST_USER_ID, 0, authToken, nullptr);
491 std::vector<uint8_t> authToken; variable
492 auto delCredCallback = std::make_shared<DelCredCallback>(TEST_USER_ID, 0, authToken, callback);
515 std::vector<uint8_t> authToken; variable
516 auto delCredCallback = std::make_shared<DelCredCallback>(TEST_USER_ID, 0, authToken, callback);
539 std::vector<uint8_t> authToken; variable
540 auto delCredCallback = std::make_shared<DelCredCallback>(TEST_USER_ID, 0, authToken, callback);
559 std::vector<uint8_t> authToken; variable
560 auto delCredCallback = std::make_shared<DelCredCallback>(TEST_USER_ID, 0, authToken, nullptr);
[all …]
/base/useriam/user_auth_framework/services/ipc/inc/
Duser_idm_service.h50 void DelUser(int32_t userId, const std::vector<uint8_t> authToken,
52 void DelCredential(int32_t userId, uint64_t credentialId, const std::vector<uint8_t> &authToken,

123