Home
last modified time | relevance | path

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

123456

/ohos5.0/drivers/peripheral/user_auth/hdi_service/common/src/
H A Duser_sign_centre.c200 UserAuthTokenHal *authToken) in CopyTokenCipherParam() argument
206 if (memcpy_s(authToken->tokenDataCipher, sizeof(authToken->tokenDataCipher), in CopyTokenCipherParam()
211 if (!CheckBufferWithSize(tag, sizeof(authToken->tag))) { in CopyTokenCipherParam()
215 if (memcpy_s(authToken->tag, sizeof(authToken->tag), tag->buf, tag->contentSize) != EOK) { in CopyTokenCipherParam()
219 if (!CheckBufferWithSize(iv, sizeof(authToken->iv))) { in CopyTokenCipherParam()
223 if (memcpy_s(authToken->iv, sizeof(authToken->iv), iv->buf, iv->contentSize) != EOK) { in CopyTokenCipherParam()
262 if (tokenPlain == NULL || authToken == NULL) { in UserAuthTokenSign()
275 authToken->version = TOKEN_VERSION; in UserAuthTokenSign()
276 authToken->tokenDataPlain = tokenPlain->tokenDataPlain; in UserAuthTokenSign()
277 authToken->tokenDataPlain.time = GetSystemTime(); in UserAuthTokenSign()
[all …]
/ohos5.0/foundation/distributedhardware/device_manager/test/commonunittest/
H A DUTTest_pin_auth.cpp60 std::string authToken = "123456"; variable
61 int32_t ret = pinAuth->ShowAuthInfo(authToken, authManager);
76 std::string authToken = jsonObject.dump(); variable
77 int32_t ret = pinAuth->ShowAuthInfo(authToken, authManager);
92 std::string authToken = jsonObject.dump(); variable
93 int32_t ret = pinAuth->ShowAuthInfo(authToken, nullptr);
108 std::string authToken = jsonObject.dump(); variable
122 std::string authToken = ""; variable
123 int32_t ret = pinAuth->StartAuth(authToken, nullptr);
136 std::string authToken = ""; variable
[all …]
/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core/src/
H A Dhks_secure_access.c340 struct HksUserAuthToken *authToken = NULL; in ParseAuthToken() local
343 if (authToken == NULL) { in ParseAuthToken()
350 *outAuthToken = authToken; in ParseAuthToken()
354 HKS_FREE(authToken); in ParseAuthToken()
428 const struct HksUserAuthToken *authToken) in VerifyFrontUserIdIfNeed() argument
617 struct HksUserAuthToken *authToken) in AssignVerifyResultAndFree() argument
625 HKS_FREE(authToken); in AssignVerifyResultAndFree()
630 HKS_FREE(authToken); in AssignVerifyResultAndFree()
632 HKS_FREE(authToken); in AssignVerifyResultAndFree()
938 struct HksUserAuthToken *authToken = NULL; in HksCoreSecureAccessVerifyParams() local
[all …]
H A Dhks_keyblob.c478 int32_t HksVerifyAuthTokenSign(const struct HksUserAuthToken *authToken) in HksVerifyAuthTokenSign() argument
480 HKS_IF_NULL_LOGE_RETURN(authToken, HKS_ERROR_NULL_POINTER, "authToken params is null!") in HksVerifyAuthTokenSign()
488 struct HksBlob srcDataBlob = { authTokenDataSize, (uint8_t *)authToken }; in HksVerifyAuthTokenSign()
496 ret = HksMemCmp(computedMac, (uint8_t *)authToken + authTokenDataSize, SHA256_SIGN_LEN); in HksVerifyAuthTokenSign()
502 int32_t HksDecryptAuthToken(struct HksUserAuthToken *authToken) in HksDecryptAuthToken() argument
504 HKS_IF_NULL_LOGE_RETURN(authToken, HKS_ERROR_NULL_POINTER, "authToken params is null!") in HksDecryptAuthToken()
512 …struct HksBlob srcDataBlob = { sizeof(struct HksCiphertextData), (uint8_t *)&authToken->ciphertext… in HksDecryptAuthToken()
519 aeadParam->nonce.data = authToken->iv; in HksDecryptAuthToken()
520 aeadParam->nonce.size = sizeof(authToken->iv); in HksDecryptAuthToken()
523 aeadParam->tagDec.data = authToken->tag; in HksDecryptAuthToken()
[all …]
/ohos5.0/drivers/peripheral/user_auth/hdi_service/user_auth/src/
H A Duser_auth_funcs.c80 g_unlockAuthResult.authToken = *unlockToken; in CacheUnlockAuthResult()
88 g_anyAuthResult.authToken = *unlockToken; in CacheAnyAuthResult()
134 AuthResult *result, UserAuthTokenHal *authToken) in HandleAuthSuccessResult() argument
157 CacheUnlockAuthResult(context->userId, authToken); in HandleAuthSuccessResult()
160 CacheAnyAuthResult(context->userId, authToken); in HandleAuthSuccessResult()
165 uint64_t scheduleId, Uint8Array authToken) in SetAuthResultMsgToAttribute() argument
192 ret = SetAttributeUint8Array(attribute, ATTR_TOKEN, authToken); in SetAuthResultMsgToAttribute()
200 UserAuthTokenHal *authToken) in GenerateRemoteAuthResultMsg() argument
331 if (time < authResultCache.authToken.tokenDataPlain.time) { in CheckReuseUnlockTokenValid()
380 *((UserAuthTokenHal *)reuseResult->token) = authResultCache.authToken; in GetReuseUnlockResult()
[all …]
H A Dauth_token_signer.c83 …st UserAuthContext *context, uint64_t credentialId, uint32_t authMode, UserAuthTokenHal *authToken) in GetAuthTokenDataAndSign() argument
85 if ((context == NULL) || (authToken == NULL)) { in GetAuthTokenDataAndSign()
89 (void)memset_s(authToken, sizeof(UserAuthTokenHal), 0, sizeof(UserAuthTokenHal)); in GetAuthTokenDataAndSign()
102 ret = UserAuthTokenSign(&tokenPlain, authToken); in GetAuthTokenDataAndSign()
/ohos5.0/drivers/peripheral/user_auth/hdi_service/idm/src/
H A Duser_idm_funcs.c144 UserAuthTokenHal *authToken = (UserAuthTokenHal *)param.token; in CheckEnrollPermission() local
151 ret = CheckIdmOperationToken(param.userId, authToken); in CheckEnrollPermission()
177 UserAuthTokenHal *authToken = (UserAuthTokenHal *)param.token; in CheckUpdatePermission() local
178 ret = CheckIdmOperationToken(param.userId, authToken); in CheckUpdatePermission()
274 if (!IsBufferValid(authToken)) { in GetAuthTokenForPinEnroll()
279 return authToken; in GetAuthTokenForPinEnroll()
295 *authToken = GetAuthTokenForPinEnroll(credentialInfo, userId); in ProcessAddPinCredential()
296 if (!IsBufferValid(*authToken)) { in ProcessAddPinCredential()
491 if (!IsBufferValid(output->authToken)) { in GetUpdateCredentialOutput()
502 DestoryBuffer(output->authToken); in GetUpdateCredentialOutput()
[all …]
H A Denroll_specification_check.c49 ResultCode CheckIdmOperationToken(int32_t userId, UserAuthTokenHal *authToken) in CheckIdmOperationToken() argument
51 if (authToken == NULL) { in CheckIdmOperationToken()
56 ResultCode ret = UserAuthTokenVerify(authToken, &tokenPlain); in CheckIdmOperationToken()
/ohos5.0/drivers/peripheral/user_auth/test/unittest/service_test/src/
H A Duser_auth_interface_service_test.cpp284 std::vector<uint8_t> authToken; variable
304 std::vector<uint8_t> authToken; variable
326 std::vector<uint8_t> authToken; variable
362 std::vector<uint8_t> authToken; variable
402 std::vector<uint8_t> authToken; variable
500 std::vector<uint8_t> authToken; variable
530 std::vector<uint8_t> authToken; variable
674 std::vector<uint8_t> authToken; variable
718 std::vector<uint8_t> authToken; variable
838 std::vector<uint8_t> authToken; variable
[all …]
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/userauth/
H A Dinterface_i_user_auth_interface_v12.md31 | [DeleteUser](#deleteuser) ([in] int userId, [in] unsigned char[] authToken, [out] struct [Credent…
161 IUserAuthInterface::BeginEnrollment ([in] int userId, [in] unsigned char[] authToken, [in] struct E…
174 | authToken | 用户口令认证令牌。 |
188 IUserAuthInterface::BeginEnrollmentV1_1 ([in] int userId, [in] unsigned char[] authToken, [in] stru…
201 | authToken | 用户口令认证令牌。 |
215 IUserAuthInterface::BeginEnrollmentV1_2 ([in] int userId, [in] unsigned char[] authToken, [in] stru…
228 | authToken | 用户口令认证令牌。 |
394 …([in] int userId, [in] unsigned long credentialId, [in] unsigned char[] authToken, [out] struct Cr…
408 | authToken | 用户口令认证令牌。 |
445 IUserAuthInterface::DeleteUser ([in] int userId, [in] unsigned char[] authToken, [out] struct Crede…
[all …]
H A Dinterface_i_user_auth_interface_v10.md25 | [BeginEnrollment](#beginenrollment) ([in] int userId, [in] unsigned char[] authToken, [in] struct…
28 …([in] int userId, [in] unsigned long credentialId, [in] unsigned char[] authToken, [out] struct [C…
31 | [DeleteUser](#deleteuser) ([in] int userId, [in] unsigned char[] authToken, [out] struct [Credent…
102 IUserAuthInterface::BeginEnrollment ([in] int userId, [in] unsigned char[] authToken, [in] struct E…
115 | authToken | 用户口令认证令牌。 |
253 …([in] int userId, [in] unsigned long credentialId, [in] unsigned char[] authToken, [out] struct Cr…
267 | authToken | 用户口令认证令牌。 |
304 IUserAuthInterface::DeleteUser ([in] int userId, [in] unsigned char[] authToken, [out] struct Crede…
317 | authToken | 用户口令认证令牌。 |
H A Dinterface_i_user_auth_interface_v11.md20 | [BeginEnrollmentV1_1](#beginenrollmentv1_1) ([in] int userId, [in] unsigned char[] authToken, [in…
58 IUserAuthInterface::BeginEnrollmentV1_1 ([in] int userId, [in] unsigned char[] authToken, [in] stru…
71 | authToken | 用户口令认证令牌。 |
/ohos5.0/base/useriam/user_auth_framework/test/fuzztest/clients/useridmclient_fuzzer/
H A Duser_idm_client_fuzzer.cpp123 std::vector<uint8_t> authToken; in FuzzClientDeleteCredential() local
124 Common::FillFuzzUint8Vector(parcel, authToken); in FuzzClientDeleteCredential()
126 UserIdmClient::GetInstance().DeleteCredential(userId, credentialId, authToken, callback); in FuzzClientDeleteCredential()
127 UserIdmClient::GetInstance().DeleteCredential(userId, credentialId, authToken, nullptr); in FuzzClientDeleteCredential()
135 std::vector<uint8_t> authToken; in FuzzClientDeleteUser() local
136 Common::FillFuzzUint8Vector(parcel, authToken); in FuzzClientDeleteUser()
138 UserIdmClient::GetInstance().DeleteUser(userId, authToken, callback); in FuzzClientDeleteUser()
139 UserIdmClient::GetInstance().DeleteUser(userId, authToken, nullptr); in FuzzClientDeleteUser()
/ohos5.0/foundation/distributedhardware/device_manager/test/commonfuzztest/pinauth_fuzzer/
H A Dpinauth_fuzzer.cpp37 std::string authToken(reinterpret_cast<const char*>(data), size); in PinAuthFuzzTest()
39 pinauth->ShowAuthInfo(authToken, authManager); in PinAuthFuzzTest()
40 pinauth->StartAuth(authToken, authManager); in PinAuthFuzzTest()
/ohos5.0/foundation/distributedhardware/device_manager/ext/pin_auth/src/
H A Dpin_auth.cpp38 int32_t PinAuth::ShowAuthInfo(std::string &authToken, std::shared_ptr<DmAuthManager> authManager) in ShowAuthInfo() argument
40 nlohmann::json jsonObject = nlohmann::json::parse(authToken, nullptr, false); in ShowAuthInfo()
52 int32_t PinAuth::StartAuth(std::string &authToken, std::shared_ptr<DmAuthManager> authManager) in StartAuth() argument
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/mock/
H A Duser_idm_client_impl_mock.cpp66 const std::vector<uint8_t> &authToken, const std::shared_ptr<UserIdmClientCallback> &callback) in DeleteCredential() argument
68 …return IUserIdmClientMoc::userIdmClientMoc->DeleteCredential(userId, credentialId, authToken, call… in DeleteCredential()
71 void UserIdmClientImpl::DeleteUser(int32_t userId, const std::vector<uint8_t> &authToken, in DeleteUser() argument
74 return IUserIdmClientMoc::userIdmClientMoc->DeleteUser(userId, authToken, callback); in DeleteUser()
/ohos5.0/drivers/peripheral/user_auth/hdi_service/service/
H A Duser_auth_interface_service.cpp861 if (authToken.size() != sizeof(UserAuthTokenHal) && authToken.size() != 0) { in BeginEnrollment()
867 memcpy_s(checkParam.token, AUTH_TOKEN_LEN, &authToken[0], authToken.size()) != EOK) { in BeginEnrollment()
961 (void)memset_s(info.authToken.data(), info.authToken.size(), 0, info.authToken.size()); in GetUpdateResult()
962 info.authToken.clear(); in GetUpdateResult()
967 DestoryBuffer(output.authToken); in GetUpdateResult()
973 Buffer *authToken = nullptr; in GetEnrollResult() local
978 if (authToken != nullptr) { in GetEnrollResult()
979 info.authToken.resize(authToken->contentSize); in GetEnrollResult()
980 …if (memcpy_s(info.authToken.data(), info.authToken.size(), authToken->buf, authToken->contentSize)… in GetEnrollResult()
998 DestoryBuffer(authToken); in GetEnrollResult()
[all …]
/ohos5.0/base/security/device_auth/services/identity_manager/src/
H A Dcert_operation.c484 authToken->val = (uint8_t *)HcMalloc(AUTH_TOKEN_SIZE, 0); in GenerateAuthTokenForAccessory()
485 if (authToken->val == NULL) { in GenerateAuthTokenForAccessory()
490 authToken->length = AUTH_TOKEN_SIZE; in GenerateAuthTokenForAccessory()
498 FreeBuffData(authToken); in GenerateAuthTokenForAccessory()
556 ret = GenerateAuthTokenForAccessory(osAccountId, groupId, authToken); in GenerateAuthTokenByDevType()
558 ret = GenerateTokenAliasForController(osAccountId, in, groupId, authToken); in GenerateAuthTokenByDevType()
742 Uint8Buff authToken = { NULL, 0 }; in GetAccountSymSharedSecret() local
753 FreeBuffData(&authToken); in GetAccountSymSharedSecret()
759 FreeBuffData(&authToken); in GetAccountSymSharedSecret()
763 … KeyParams keyParams = { { authToken.val, authToken.length, isTokenStored }, false, osAccountId }; in GetAccountSymSharedSecret()
[all …]
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/mock/
H A Duser_idm_client_impl_mock.h38 …void DeleteCredential(int32_t userId, uint64_t credentialId, const std::vector<uint8_t> &authToken,
40 virtual void DeleteUser(int32_t userId, const std::vector<uint8_t> &authToken,
61 … const std::vector<uint8_t> &authToken, const std::shared_ptr<UserIdmClientCallback> &callback));
62 MOCK_METHOD3(DeleteUser, void(int32_t userId, const std::vector<uint8_t> &authToken,
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/ipc/src/
H A Duser_idm_stub.cpp298 std::vector<uint8_t> authToken = {}; variable
299 if (!data.ReadUInt8Vector(&authToken)) {
310 DelUser(userId, authToken, callback);
331 std::vector<uint8_t> authToken; in DelCredentialStub() local
332 if (!data.ReadUInt8Vector(&authToken)) { in DelCredentialStub()
343 DelCredential(userId, credentialId, authToken, callback); in DelCredentialStub()
/ohos5.0/base/useriam/user_auth_framework/test/fuzztest/services/useridmservice_fuzzer/
H A Duser_idm_service_fuzzer.cpp215 std::vector<uint8_t> authToken; in FuzzDelUser() local
216 FillFuzzUint8Vector(parcel, authToken); in FuzzDelUser()
218 g_UserIdmService.DelUser(userId, authToken, callback); in FuzzDelUser()
241 std::vector<uint8_t> authToken; in DelCredential() local
242 FillFuzzUint8Vector(parcel, authToken); in DelCredential()
244 g_UserIdmService.DelCredential(userId, credentialId, authToken, callback); in DelCredential()
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/user_auth_v1_2/cpp_target/user_auth/v1_2/
H A Duser_auth_interface_proxy.h.txt81 int32_t BeginEnrollment(int32_t userId, const std::vector<uint8_t>& authToken,
89 …32_t DeleteCredential(int32_t userId, uint64_t credentialId, const std::vector<uint8_t>& authToken,
98 int32_t DeleteUser(int32_t userId, const std::vector<uint8_t>& authToken,
126 int32_t BeginEnrollmentV1_1(int32_t userId, const std::vector<uint8_t>& authToken,
142 int32_t BeginEnrollmentV1_2(int32_t userId, const std::vector<uint8_t>& authToken,
158 static int32_t BeginEnrollment_(int32_t userId, const std::vector<uint8_t>& authToken,
166 …2_t DeleteCredential_(int32_t userId, uint64_t credentialId, const std::vector<uint8_t>& authToken,
175 static int32_t DeleteUser_(int32_t userId, const std::vector<uint8_t>& authToken,
203 static int32_t BeginEnrollmentV1_1_(int32_t userId, const std::vector<uint8_t>& authToken,
221 static int32_t BeginEnrollmentV1_2_(int32_t userId, const std::vector<uint8_t>& authToken,
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/include/authentication/
H A Dauthentication.h27 …virtual int32_t ShowAuthInfo(std::string &authToken, std::shared_ptr<DmAuthManager> authManager) =…
28 … virtual int32_t StartAuth(std::string &authToken, std::shared_ptr<DmAuthManager> authManager) = 0;
/ohos5.0/foundation/distributedhardware/device_manager/ext/pin_auth/include/
H A Dpin_auth.h39 … int32_t ShowAuthInfo(std::string &authToken, std::shared_ptr<DmAuthManager> authManager) override;
46 int32_t StartAuth(std::string &authToken, std::shared_ptr<DmAuthManager> authManager) override;
/ohos5.0/base/useriam/user_auth_framework/services/core/src/
H A Dupdate_pin_param_impl.cpp22 const std::vector<uint8_t> &rootSecret, const std::vector<uint8_t> &authToken) in UpdatePinParamImpl() argument
23 …Id_(oldCredentialId), oldRootSecret_(oldRootSecret), rootSecret_(rootSecret), authToken_(authToken) in UpdatePinParamImpl()

123456