Home
last modified time | relevance | path

Searched refs:authToken (Results 1 - 16 of 16) sorted by relevance

/drivers/peripheral/user_auth/hdi_service/common/src/
H A Duser_sign_centre.c200 UserAuthTokenHal *authToken) in CopyTokenCipherParam()
202 if (!CheckBufferWithSize(ciphertext, sizeof(authToken->tokenDataCipher))) { in CopyTokenCipherParam()
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 in CopyTokenCipherParam()
199 CopyTokenCipherParam(const Buffer *ciphertext, const Buffer *tag, const Buffer *iv, UserAuthTokenHal *authToken) CopyTokenCipherParam() argument
230 GetTokenDataCipherResult(const TokenDataToEncrypt *data, UserAuthTokenHal *authToken, const HksAuthTokenKey *tokenKey) GetTokenDataCipherResult() argument
260 UserAuthTokenSign(UserAuthTokenPlain *tokenPlain, UserAuthTokenHal *authToken) UserAuthTokenSign() argument
[all...]
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
H A Duser_auth_funcs.c82 g_unlockAuthResult.authToken = *unlockToken; in CacheUnlockAuthResult()
128 AuthResult *result, UserAuthTokenHal *authToken) in HandleAuthSuccessResult()
151 CacheUnlockAuthResult(context->userId, authToken); in HandleAuthSuccessResult()
157 uint64_t scheduleId, Uint8Array authToken) in SetAuthResultMsgToAttribute()
184 ret = SetAttributeUint8Array(attribute, ATTR_TOKEN, authToken); in SetAuthResultMsgToAttribute()
186 LOG_ERROR("SetAttributeUint8Array for authToken fail"); in SetAuthResultMsgToAttribute()
192 UserAuthTokenHal *authToken) in GenerateRemoteAuthResultMsg()
205 Uint8Array authTokenIn = { (uint8_t *)(&authToken), sizeof(UserAuthTokenHal) }; in GenerateRemoteAuthResultMsg()
230 ExecutorResultInfo *executorResultInfo, UserAuthTokenHal *authToken, AuthResult *result) in RequestAuthResultFuncInner()
235 ret = GenerateRemoteAuthResultMsg(result, executorResultInfo->scheduleId, collectorUdid, authToken); in RequestAuthResultFuncInner()
127 HandleAuthSuccessResult(const UserAuthContext *context, const ExecutorResultInfo *info, AuthResult *result, UserAuthTokenHal *authToken) HandleAuthSuccessResult() argument
156 SetAuthResultMsgToAttribute(Attribute *attribute, AuthResult *result, uint64_t scheduleId, Uint8Array authToken) SetAuthResultMsgToAttribute() argument
191 GenerateRemoteAuthResultMsg(AuthResult *result, uint64_t scheduleId, Uint8Array collectorUdid, UserAuthTokenHal *authToken) GenerateRemoteAuthResultMsg() argument
229 RequestAuthResultFuncInner(UserAuthContext *userAuthContext, ExecutorResultInfo *executorResultInfo, UserAuthTokenHal *authToken, AuthResult *result) RequestAuthResultFuncInner() argument
252 RequestAuthResultFunc(uint64_t contextId, const Buffer *scheduleResult, UserAuthTokenHal *authToken, AuthResult *result) RequestAuthResultFunc() argument
[all...]
H A Dauth_token_signer.c83 const UserAuthContext *context, uint64_t credentialId, uint32_t authMode, UserAuthTokenHal *authToken) in GetAuthTokenDataAndSign()
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()
82 GetAuthTokenDataAndSign( const UserAuthContext *context, uint64_t credentialId, uint32_t authMode, UserAuthTokenHal *authToken) GetAuthTokenDataAndSign() argument
/drivers/peripheral/user_auth/hdi_service/idm/src/
H A Duser_idm_funcs.c148 UserAuthTokenHal *authToken = (UserAuthTokenHal *)param.token; in CheckEnrollPermission() local
155 ret = CheckIdmOperationToken(param.userId, authToken); in CheckEnrollPermission()
185 UserAuthTokenHal *authToken = (UserAuthTokenHal *)param.token; in CheckUpdatePermission() local
186 ret = CheckIdmOperationToken(param.userId, authToken); in CheckUpdatePermission()
278 LOG_ERROR("generate pin enroll authToken fail"); in GetAuthTokenForPinEnroll()
281 Buffer *authToken = CreateBufferByData((uint8_t *)(&authTokenHal), sizeof(UserAuthTokenHal)); in GetAuthTokenForPinEnroll() local
282 if (!IsBufferValid(authToken)) { in GetAuthTokenForPinEnroll()
283 LOG_ERROR("create authToken buffer fail"); in GetAuthTokenForPinEnroll()
287 return authToken; in GetAuthTokenForPinEnroll()
291 const ExecutorResultInfo *executorResultInfo, Buffer **rootSecret, Buffer **authToken) in ProcessAddPinCredential()
290 ProcessAddPinCredential(int32_t userId, const CredentialInfoHal *credentialInfo, const ExecutorResultInfo *executorResultInfo, Buffer **rootSecret, Buffer **authToken) ProcessAddPinCredential() argument
314 AddCredentialFunc( int32_t userId, const Buffer *scheduleResult, uint64_t *credentialId, Buffer **rootSecret, Buffer **authToken) AddCredentialFunc() argument
[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()
/drivers/peripheral/user_auth/test/unittest/service_test/src/
H A Duser_auth_interface_service_test.cpp97 const std::vector<uint8_t> &authToken, EnrollResultTest &enrollResultTest) in DoOnceEnroll()
103 EXPECT_EQ(service->BeginEnrollment(authToken, enrollParam, scheduleInfo), 0); in DoOnceEnroll()
269 std::vector<uint8_t> authToken(10, 1); in HWTEST_F()
273 EXPECT_EQ(service->BeginEnrollment(authToken, param, scheduleInfo), 8); in HWTEST_F()
285 std::vector<uint8_t> authToken; in HWTEST_F() local
289 EXPECT_EQ(service->BeginEnrollment(authToken, param, scheduleInfo), RESULT_NEED_INIT); in HWTEST_F()
305 std::vector<uint8_t> authToken; in HWTEST_F() local
309 EXPECT_EQ(service->BeginEnrollment(authToken, param, scheduleInfo), 10018); in HWTEST_F()
327 std::vector<uint8_t> authToken; in HWTEST_F() local
332 EXPECT_EQ(service->BeginEnrollment(authToken, para in HWTEST_F()
96 DoOnceEnroll(const std::shared_ptr<UserAuthInterfaceService> &service, int32_t userId, AuthType authType, const std::vector<uint8_t> &authToken, EnrollResultTest &enrollResultTest) DoOnceEnroll() argument
363 std::vector<uint8_t> authToken; HWTEST_F() local
403 std::vector<uint8_t> authToken; HWTEST_F() local
501 std::vector<uint8_t> authToken; HWTEST_F() local
531 std::vector<uint8_t> authToken; HWTEST_F() local
675 std::vector<uint8_t> authToken; HWTEST_F() local
719 std::vector<uint8_t> authToken; HWTEST_F() local
839 std::vector<uint8_t> authToken; HWTEST_F() local
903 std::vector<uint8_t> authToken; HWTEST_F() local
962 std::vector<uint8_t> authToken; HWTEST_F() local
994 std::vector<uint8_t> authToken; HWTEST_F() local
1022 std::vector<uint8_t> authToken; HWTEST_F() local
1046 std::vector<uint8_t> authToken; HWTEST_F() local
1093 std::vector<uint8_t> authToken; HWTEST_F() local
1137 std::vector<uint8_t> authToken; HWTEST_F() local
1169 std::vector<uint8_t> authToken; HWTEST_F() local
1204 std::vector<uint8_t> authToken; HWTEST_F() local
1238 std::vector<uint8_t> authToken; HWTEST_F() local
1267 std::vector<uint8_t> authToken; HWTEST_F() local
[all...]
/drivers/peripheral/user_auth/hdi_service/idm/inc/
H A Duser_idm_funcs.h46 Buffer *authToken; member
52 Buffer **authToken);
H A Denroll_specification_check.h34 ResultCode CheckIdmOperationToken(int32_t userId, UserAuthTokenHal *authToken);
/drivers/peripheral/user_auth/hdi_service/service/
H A Duser_auth_interface_service.cpp618 IAM_LOGE("copy authToken failed"); in CopyAuthResult()
776 IAM_LOGE("copy authToken failed"); in UpdateIdentificationResult()
859 const std::vector<uint8_t> &authToken, const HdiEnrollParam &param, HdiScheduleInfo &info) in BeginEnrollment()
862 if (authToken.size() != sizeof(UserAuthTokenHal) && authToken.size() != 0) { in BeginEnrollment()
863 IAM_LOGE("authToken len is invalid"); in BeginEnrollment()
867 if (authToken.size() == sizeof(UserAuthTokenHal) && in BeginEnrollment()
868 memcpy_s(checkParam.token, AUTH_TOKEN_LEN, &authToken[0], authToken.size()) != EOK) { in BeginEnrollment()
878 if (authToken in BeginEnrollment()
858 BeginEnrollment( const std::vector<uint8_t> &authToken, const HdiEnrollParam &param, HdiScheduleInfo &info) BeginEnrollment() argument
973 Buffer *authToken = nullptr; GetEnrollResult() local
1040 DeleteCredential(int32_t userId, uint64_t credentialId, const std::vector<uint8_t> &authToken, CredentialInfo &info) DeleteCredential() argument
1118 DeleteUser(int32_t userId, const std::vector<uint8_t> &authToken, std::vector<CredentialInfo> &deletedInfos, std::vector<uint8_t> &rootSecret) DeleteUser() argument
[all...]
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/
H A Dauth_token_signer.h27 const UserAuthContext *context, uint64_t credentialId, uint32_t authMode, UserAuthTokenHal *authToken);
H A Duser_auth_funcs.h70 UserAuthTokenHal authToken; member
74 ResultCode RequestAuthResultFunc(uint64_t contextId, const Buffer *scheduleResult, UserAuthTokenHal *authToken,
/drivers/peripheral/user_auth/test/fuzztest/user_auth/userauthhdi_fuzzer/
H A Duser_auth_hdi_fuzzer.cpp291 std::vector<uint8_t> authToken; in FuzzBeginEnrollment() local
292 FillFuzzUint8Vector(parcel, authToken); in FuzzBeginEnrollment()
297 g_service.BeginEnrollment(authToken, param, info); in FuzzBeginEnrollment()
328 std::vector<uint8_t> authToken; in FuzzDeleteCredential() local
329 FillFuzzUint8Vector(parcel, authToken); in FuzzDeleteCredential()
332 g_service.DeleteCredential(userId, credentialId, authToken, info); in FuzzDeleteCredential()
363 std::vector<uint8_t> authToken; in FuzzDeleteUser() local
364 FillFuzzUint8Vector(parcel, authToken); in FuzzDeleteUser()
369 g_service.DeleteUser(userId, authToken, deletedInfos, rootSecret); in FuzzDeleteUser()
/drivers/peripheral/user_auth/hdi_service/common/inc/
H A Duser_sign_centre.h68 ResultCode UserAuthTokenSign(UserAuthTokenPlain *tokenPlain, UserAuthTokenHal *authToken);
/drivers/peripheral/user_auth/test/unittest/idm_test/
H A Duser_idm_funcs_test.cpp199 Buffer *authToken = nullptr; in HWTEST_F() local
200 EXPECT_EQ(AddCredentialFunc(userId1, scheduleResult, &credentialId, &rootSecret, &authToken), RESULT_UNKNOWN); in HWTEST_F()
204 EXPECT_EQ(AddCredentialFunc(userId1, scheduleResult, &credentialId, &rootSecret, &authToken), RESULT_UNKNOWN); in HWTEST_F()
H A Denroll_specification_check_test.cpp42 extern ResultCode GetTokenDataCipherResult(const TokenDataToEncrypt *data, UserAuthTokenHal *authToken,
/drivers/peripheral/user_auth/test/unittest/user_auth_test/
H A Duser_sign_centre_test.cpp30 extern ResultCode GetTokenDataCipherResult(const TokenDataToEncrypt *data, UserAuthTokenHal *authToken,

Completed in 11 milliseconds