Home
last modified time | relevance | path

Searched refs:reuseResult (Results 1 - 4 of 4) sorted by relevance

/drivers/peripheral/user_auth/test/unittest/user_auth_test/
H A Duser_auth_funcs_test.cpp27 extern ResultCode GetReuseUnlockResult(const ReuseUnlockParamHal *info, ReuseUnlockResult *reuseResult);
102 ReuseUnlockResult reuseResult; in HWTEST_F() local
103 EXPECT_EQ(GetReuseUnlockResult(&info, &reuseResult), RESULT_GENERAL_ERROR); in HWTEST_F()
112 EXPECT_EQ(GetReuseUnlockResult(&info, &reuseResult), RESULT_VERIFY_TOKEN_FAIL); in HWTEST_F()
117 EXPECT_EQ(GetReuseUnlockResult(&info, &reuseResult), RESULT_GENERAL_ERROR); in HWTEST_F()
121 EXPECT_EQ(GetReuseUnlockResult(&info, &reuseResult), RESULT_SUCCESS); in HWTEST_F()
122 EXPECT_EQ(reuseResult.enrolledState.credentialCount, 0); in HWTEST_F()
123 EXPECT_EQ(reuseResult.enrolledState.credentialDigest, 0); in HWTEST_F()
130 ReuseUnlockResult reuseResult; in HWTEST_F() local
135 EXPECT_EQ(CheckReuseUnlockResultFunc(&info, &reuseResult), RESULT_GENERAL_ERRO in HWTEST_F()
152 ReuseUnlockResult reuseResult; HWTEST_F() local
[all...]
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
H A Duser_auth_funcs.c362 IAM_STATIC ResultCode GetReuseUnlockResult(const ReuseUnlockParamHal *info, ReuseUnlockResult *reuseResult) in GetReuseUnlockResult() argument
369 *((UserAuthTokenHal *)reuseResult->token) = g_unlockAuthResult.authToken; in GetReuseUnlockResult()
370 reuseResult->authType = g_unlockAuthResult.authToken.tokenDataPlain.authType; in GetReuseUnlockResult()
371 ((UserAuthTokenHal *)reuseResult->token)->tokenDataPlain.authMode = SCHEDULE_MODE_REUSE_UNLOCK_AUTH_RESULT; in GetReuseUnlockResult()
372 ((UserAuthTokenHal *)reuseResult->token)->tokenDataPlain.tokenType = TOKEN_TYPE_LOCAL_RESIGN; in GetReuseUnlockResult()
373 if (memcpy_s(((UserAuthTokenHal *)reuseResult->token)->tokenDataPlain.challenge, CHALLENGE_LEN, info->challenge, in GetReuseUnlockResult()
378 ret = GetEnrolledState(info->userId, reuseResult->authType, &reuseResult->enrolledState); in GetReuseUnlockResult()
381 (void)memset_s(&reuseResult->enrolledState, sizeof(EnrolledStateHal), 0, sizeof(EnrolledStateHal)); in GetReuseUnlockResult()
387 ResultCode CheckReuseUnlockResultFunc(const ReuseUnlockParamHal *info, ReuseUnlockResult *reuseResult) in CheckReuseUnlockResultFunc() argument
[all...]
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/
H A Duser_auth_funcs.h77 ResultCode CheckReuseUnlockResultFunc(const ReuseUnlockParamHal *info, ReuseUnlockResult *reuseResult);
/drivers/peripheral/user_auth/hdi_service/service/
H A Duser_auth_interface_service.cpp1386 ReuseUnlockResult reuseResult = {}; in CheckReuseUnlockResult() local
1387 int32_t ret = CheckReuseUnlockResultFunc(&paramHal, &reuseResult); in CheckReuseUnlockResult()
1393 info.authType = reuseResult.authType; in CheckReuseUnlockResult()
1394 info.enrolledState.credentialDigest = reuseResult.enrolledState.credentialDigest; in CheckReuseUnlockResult()
1395 info.enrolledState.credentialCount = reuseResult.enrolledState.credentialCount; in CheckReuseUnlockResult()
1397 if (memcpy_s(info.token.data(), info.token.size(), reuseResult.token, AUTH_TOKEN_LEN) != EOK) { in CheckReuseUnlockResult()

Completed in 7 milliseconds