Home
last modified time | relevance | path

Searched refs:tokenDataPlain (Results 1 - 10 of 10) sorted by relevance

/drivers/peripheral/user_auth/test/unittest/idm_test/
H A Denroll_specification_check_test.cpp74 token.tokenDataPlain.authType = FACE_AUTH; in HWTEST_F()
77 token.tokenDataPlain.time = GetSystemTime(); in HWTEST_F()
82 token.tokenDataPlain.authType = PIN_AUTH; in HWTEST_F()
83 token.tokenDataPlain.authMode = SCHEDULE_MODE_AUTH; in HWTEST_F()
84 token.tokenDataPlain.tokenType = TOKEN_TYPE_LOCAL_AUTH; in HWTEST_F()
87 token.tokenDataPlain.authMode = SCHEDULE_MODE_AUTH; in HWTEST_F()
88 token.tokenDataPlain.tokenType = TOKEN_TYPE_COAUTH; in HWTEST_F()
91 token.tokenDataPlain.tokenType = TOKEN_TYPE_LOCAL_AUTH; in HWTEST_F()
110 token.tokenDataPlain.authType = authType; in HWTEST_F()
111 token.tokenDataPlain in HWTEST_F()
[all...]
H A Duser_idm_funcs_test.cpp215 token.tokenDataPlain.authType = 4; in HWTEST_F()
/drivers/peripheral/user_auth/test/unittest/user_auth_test/
H A Duser_auth_funcs_test.cpp108 userAuthTokenCached.tokenDataPlain.time = GetSystemTime() + 600; in HWTEST_F()
109 userAuthTokenCached.tokenDataPlain.authType = 1; in HWTEST_F()
110 userAuthTokenCached.tokenDataPlain.authTrustLevel = ATL4; in HWTEST_F()
114 userAuthTokenCached.tokenDataPlain.authMode = SCHEDULE_MODE_AUTH; in HWTEST_F()
115 userAuthTokenCached.tokenDataPlain.tokenType = TOKEN_TYPE_LOCAL_AUTH; in HWTEST_F()
119 userAuthTokenCached.tokenDataPlain.time = GetSystemTime(); in HWTEST_F()
143 userAuthTokenCached.tokenDataPlain.authType = 1; in HWTEST_F()
144 userAuthTokenCached.tokenDataPlain.authTrustLevel = ATL3; in HWTEST_F()
145 userAuthTokenCached.tokenDataPlain.time = GetSystemTime() + 300; in HWTEST_F()
146 userAuthTokenCached.tokenDataPlain in HWTEST_F()
[all...]
H A Duser_sign_centre_test.cpp66 token.tokenDataPlain.time = UINT64_MAX; in HWTEST_F()
68 token.tokenDataPlain.time = 0; in HWTEST_F()
70 token.tokenDataPlain.time = GetSystemTime(); in HWTEST_F()
94 .tokenDataPlain = { in HWTEST_F()
119 EXPECT_EQ(memcmp(&(userAuthTokenPlain.tokenDataPlain), &(token.tokenDataPlain), in HWTEST_F()
120 sizeof(userAuthTokenPlain.tokenDataPlain)), 0); in HWTEST_F()
148 userAuthToken.tokenDataPlain.time = UINT64_MAX; in HWTEST_F()
150 userAuthToken.tokenDataPlain.time = GetSystemTime(); in HWTEST_F()
/drivers/peripheral/user_auth/hdi_service/idm/src/
H A Denroll_specification_check.c61 if (tokenPlain.tokenDataPlain.authType != PIN_AUTH) { in CheckIdmOperationToken()
65 if ((tokenPlain.tokenDataPlain.authMode != SCHEDULE_MODE_AUTH && in CheckIdmOperationToken()
66 tokenPlain.tokenDataPlain.authMode != SCHEDULE_MODE_ENROLL) in CheckIdmOperationToken()
67 || (tokenPlain.tokenDataPlain.tokenType != TOKEN_TYPE_LOCAL_AUTH)) { in CheckIdmOperationToken()
71 ret = CheckChallenge(tokenPlain.tokenDataPlain.challenge, CHALLENGE_LEN); in CheckIdmOperationToken()
88 if (!IsValidTokenTime(tokenPlain.tokenDataPlain.time)) { in CheckIdmOperationToken()
H A Duser_idm_funcs.c264 ResultCode ret = GetEnrollTokenDataPlain(credentialInfo, &(tokenPlain.tokenDataPlain)); in GetAuthTokenForPinEnroll()
/drivers/peripheral/user_auth/hdi_service/common/src/
H A Duser_sign_centre.c39 if (currentTime < userAuthToken->tokenDataPlain.time) { in IsTimeValid()
42 if (currentTime - userAuthToken->tokenDataPlain.time > TOKEN_VALIDITY_PERIOD) { in IsTimeValid()
168 tokenPlain->tokenDataPlain = userAuthToken->tokenDataPlain; in UserAuthTokenVerify()
276 authToken->tokenDataPlain = tokenPlain->tokenDataPlain; in UserAuthTokenSign()
277 authToken->tokenDataPlain.time = GetSystemTime(); in UserAuthTokenSign()
278 LOG_INFO("signed token type %{public}u", authToken->tokenDataPlain.tokenType); in UserAuthTokenSign()
/drivers/peripheral/user_auth/hdi_service/common/inc/
H A Duser_sign_centre.h56 TokenDataPlain tokenDataPlain; member
64 TokenDataPlain tokenDataPlain; member
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
H A Duser_auth_funcs.c322 if ((g_unlockAuthResult.authToken.tokenDataPlain.authMode != SCHEDULE_MODE_AUTH) in CheckReuseUnlockTokenValid()
323 || (g_unlockAuthResult.authToken.tokenDataPlain.tokenType != TOKEN_TYPE_LOCAL_AUTH)) { in CheckReuseUnlockTokenValid()
328 if (time < g_unlockAuthResult.authToken.tokenDataPlain.time) { in CheckReuseUnlockTokenValid()
332 if ((time - g_unlockAuthResult.authToken.tokenDataPlain.time) > REUSED_UNLOCK_TOKEN_PERIOD) { in CheckReuseUnlockTokenValid()
338 if ((time - g_unlockAuthResult.authToken.tokenDataPlain.time) > info->reuseUnlockResultDuration) { in CheckReuseUnlockTokenValid()
346 if (info->authTrustLevel > g_unlockAuthResult.authToken.tokenDataPlain.authTrustLevel) { in CheckReuseUnlockTokenValid()
352 if (info->authTypes[i] == g_unlockAuthResult.authToken.tokenDataPlain.authType) { in CheckReuseUnlockTokenValid()
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 in GetReuseUnlockResult()
[all...]
H A Dauth_token_signer.c92 ResultCode ret = GetAuthTokenDataPlain(context, authMode, &(tokenPlain.tokenDataPlain)); in GetAuthTokenDataAndSign()

Completed in 5 milliseconds