Home
last modified time | relevance | path

Searched refs:UserAuthTokenHal (Results 1 - 18 of 18) sorted by relevance

/drivers/peripheral/user_auth/test/unittest/user_auth_test/
H A Duser_sign_centre_test.cpp28 extern bool IsTimeValid(const UserAuthTokenHal *userAuthToken);
29 extern ResultCode UserAuthTokenHmac(UserAuthTokenHal *userAuthToken, HksAuthTokenKey *authTokenKey);
30 extern ResultCode GetTokenDataCipherResult(const TokenDataToEncrypt *data, UserAuthTokenHal *authToken,
32 extern ResultCode DecryptTokenCipher(const UserAuthTokenHal *userAuthToken, UserAuthTokenPlain *tokenPlain,
34 extern ResultCode CheckUserAuthTokenHmac(const UserAuthTokenHal *userAuthToken, HksAuthTokenKey *tokenKey);
65 UserAuthTokenHal token = {}; in HWTEST_F()
76 UserAuthTokenHal token = {}; in HWTEST_F()
92 UserAuthTokenHal token = { in HWTEST_F()
127 UserAuthTokenHal userAuthToken = {}; in HWTEST_F()
135 UserAuthTokenHal userAuthToke in HWTEST_F()
[all...]
H A Duser_auth_funcs_test.cpp28 extern void CacheUnlockAuthResult(int32_t userId, const UserAuthTokenHal *unlockToken,
63 UserAuthTokenHal token = {}; in HWTEST_F()
106 UserAuthTokenHal userAuthTokenCached; in HWTEST_F()
142 UserAuthTokenHal userAuthTokenCached; in HWTEST_F()
H A Didentify_funcs_test.cpp59 UserAuthTokenHal token = {}; in HWTEST_F()
/drivers/peripheral/user_auth/hdi_service/common/inc/
H A Duser_sign_centre.h29 #define AUTH_TOKEN_LEN sizeof(UserAuthTokenHal)
61 } __attribute__((__packed__)) UserAuthTokenHal; typedef
68 ResultCode UserAuthTokenSign(UserAuthTokenPlain *tokenPlain, UserAuthTokenHal *authToken);
69 ResultCode UserAuthTokenVerify(UserAuthTokenHal *userAuthToken, UserAuthTokenPlain *tokenPlain);
70 ResultCode ReuseUnlockTokenSign(UserAuthTokenHal *reuseToken);
/drivers/peripheral/user_auth/hdi_service/common/src/
H A Duser_sign_centre.c36 IAM_STATIC bool IsTimeValid(const UserAuthTokenHal *userAuthToken) in IsTimeValid()
48 IAM_STATIC ResultCode UserAuthTokenHmac(UserAuthTokenHal *userAuthToken, HksAuthTokenKey *tokenKey) in UserAuthTokenHmac()
83 IAM_STATIC ResultCode DecryptTokenCipher(const UserAuthTokenHal *userAuthToken, UserAuthTokenPlain *tokenPlain, in DecryptTokenCipher()
124 IAM_STATIC ResultCode CheckUserAuthTokenHmac(const UserAuthTokenHal *userAuthToken, HksAuthTokenKey *tokenKey) in CheckUserAuthTokenHmac()
145 ResultCode UserAuthTokenVerify(UserAuthTokenHal *userAuthToken, UserAuthTokenPlain *tokenPlain) in UserAuthTokenVerify()
200 UserAuthTokenHal *authToken) in CopyTokenCipherParam()
230 IAM_STATIC ResultCode GetTokenDataCipherResult(const TokenDataToEncrypt *data, UserAuthTokenHal *authToken, in GetTokenDataCipherResult()
260 ResultCode UserAuthTokenSign(UserAuthTokenPlain *tokenPlain, UserAuthTokenHal *authToken) in UserAuthTokenSign()
267 (void)memset_s(authToken, sizeof(UserAuthTokenHal), 0, sizeof(UserAuthTokenHal)); in UserAuthTokenSign()
[all...]
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
H A Dauth_token_signer.c83 const UserAuthContext *context, uint64_t credentialId, uint32_t authMode, UserAuthTokenHal *authToken) in GetAuthTokenDataAndSign()
89 (void)memset_s(authToken, sizeof(UserAuthTokenHal), 0, sizeof(UserAuthTokenHal)); in GetAuthTokenDataAndSign()
H A Duser_auth_funcs.c77 IAM_STATIC void CacheUnlockAuthResult(int32_t userId, const UserAuthTokenHal *unlockToken) in CacheUnlockAuthResult()
128 AuthResult *result, UserAuthTokenHal *authToken) in HandleAuthSuccessResult()
192 UserAuthTokenHal *authToken) in GenerateRemoteAuthResultMsg()
205 Uint8Array authTokenIn = { (uint8_t *)(&authToken), sizeof(UserAuthTokenHal) }; in GenerateRemoteAuthResultMsg()
230 ExecutorResultInfo *executorResultInfo, UserAuthTokenHal *authToken, AuthResult *result) in RequestAuthResultFuncInner()
252 ResultCode RequestAuthResultFunc(uint64_t contextId, const Buffer *scheduleResult, UserAuthTokenHal *authToken, in RequestAuthResultFunc()
369 *((UserAuthTokenHal *)reuseResult->token) = g_unlockAuthResult.authToken; 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 *)reuseResul in GetReuseUnlockResult()
[all...]
H A Didentify_funcs.c52 UserAuthTokenHal *token, int32_t *result) in DoUpdateIdentify()
/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;
74 ResultCode RequestAuthResultFunc(uint64_t contextId, const Buffer *scheduleResult, UserAuthTokenHal *authToken,
H A Didentify_funcs.h29 ResultCode DoUpdateIdentify(uint64_t contextId, const Buffer *scheduleResult, int32_t *userId, UserAuthTokenHal *token,
/drivers/peripheral/user_auth/hdi_service/idm/inc/
H A Denroll_specification_check.h34 ResultCode CheckIdmOperationToken(int32_t userId, UserAuthTokenHal *authToken);
/drivers/peripheral/user_auth/test/unittest/idm_test/
H A Denroll_specification_check_test.cpp41 extern ResultCode UserAuthTokenHmac(UserAuthTokenHal *userAuthToken, HksAuthTokenKey *tokenKey);
42 extern ResultCode GetTokenDataCipherResult(const TokenDataToEncrypt *data, UserAuthTokenHal *authToken,
73 UserAuthTokenHal token = {}; in HWTEST_F()
109 UserAuthTokenHal token = {}; in HWTEST_F()
H A Duser_idm_funcs_test.cpp214 UserAuthTokenHal token = {}; in HWTEST_F()
216 EXPECT_EQ(memcpy_s(param.token, sizeof(UserAuthTokenHal), &token, sizeof(UserAuthTokenHal)), EOK); in HWTEST_F()
/drivers/peripheral/user_auth/hdi_service/idm/src/
H A Duser_idm_funcs.c148 UserAuthTokenHal *authToken = (UserAuthTokenHal *)param.token; in CheckEnrollPermission()
185 UserAuthTokenHal *authToken = (UserAuthTokenHal *)param.token; in CheckUpdatePermission()
275 UserAuthTokenHal authTokenHal = {}; in GetAuthTokenForPinEnroll()
281 Buffer *authToken = CreateBufferByData((uint8_t *)(&authTokenHal), sizeof(UserAuthTokenHal)); in GetAuthTokenForPinEnroll()
370 UserAuthTokenHal token; in DeleteCredentialFunc()
371 if (memcpy_s(&token, sizeof(UserAuthTokenHal), param.token, AUTH_TOKEN_LEN) != EOK) { in DeleteCredentialFunc()
H A Denroll_specification_check.c49 ResultCode CheckIdmOperationToken(int32_t userId, UserAuthTokenHal *authToken) in CheckIdmOperationToken()
/drivers/peripheral/user_auth/hdi_service/service/
H A Duser_auth_interface_service.cpp601 static int32_t CopyAuthResult(AuthResult &infoIn, UserAuthTokenHal &authTokenIn, HdiAuthResultInfo &infoOut, in CopyAuthResult()
616 infoOut.token.resize(sizeof(UserAuthTokenHal)); in CopyAuthResult()
617 if (memcpy_s(infoOut.token.data(), infoOut.token.size(), &authTokenIn, sizeof(UserAuthTokenHal)) != EOK) { in CopyAuthResult()
665 UserAuthTokenHal authTokenHal = {}; in UpdateAuthenticationResultInner()
766 UserAuthTokenHal token = {}; in UpdateIdentificationResult()
774 info.token.resize(sizeof(UserAuthTokenHal)); in UpdateIdentificationResult()
862 if (authToken.size() != sizeof(UserAuthTokenHal) && authToken.size() != 0) { in BeginEnrollment()
867 if (authToken.size() == sizeof(UserAuthTokenHal) && in BeginEnrollment()
878 if (authToken.size() == sizeof(UserAuthTokenHal) && param.authType == PIN) { in BeginEnrollment()
1044 if (authToken.size() != sizeof(UserAuthTokenHal)) { in DeleteCredential()
[all...]
/drivers/peripheral/user_auth/test/unittest/service_test/src/
H A Duser_auth_interface_service_test.cpp1027 authToken.resize(sizeof(UserAuthTokenHal)); in HWTEST_F()

Completed in 11 milliseconds