/drivers/peripheral/user_auth/test/unittest/user_auth_test/ |
H A D | user_sign_centre_test.cpp | 28 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 D | user_auth_funcs_test.cpp | 28 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 D | identify_funcs_test.cpp | 59 UserAuthTokenHal token = {}; in HWTEST_F()
|
/drivers/peripheral/user_auth/hdi_service/common/inc/ |
H A D | user_sign_centre.h | 29 #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 D | user_sign_centre.c | 36 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 D | auth_token_signer.c | 83 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 D | user_auth_funcs.c | 77 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 D | identify_funcs.c | 52 UserAuthTokenHal *token, int32_t *result)
in DoUpdateIdentify()
|
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/ |
H A D | auth_token_signer.h | 27 const UserAuthContext *context, uint64_t credentialId, uint32_t authMode, UserAuthTokenHal *authToken);
|
H A D | user_auth_funcs.h | 70 UserAuthTokenHal authToken; 74 ResultCode RequestAuthResultFunc(uint64_t contextId, const Buffer *scheduleResult, UserAuthTokenHal *authToken,
|
H A D | identify_funcs.h | 29 ResultCode DoUpdateIdentify(uint64_t contextId, const Buffer *scheduleResult, int32_t *userId, UserAuthTokenHal *token,
|
/drivers/peripheral/user_auth/hdi_service/idm/inc/ |
H A D | enroll_specification_check.h | 34 ResultCode CheckIdmOperationToken(int32_t userId, UserAuthTokenHal *authToken);
|
/drivers/peripheral/user_auth/test/unittest/idm_test/ |
H A D | enroll_specification_check_test.cpp | 41 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 D | user_idm_funcs_test.cpp | 214 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 D | user_idm_funcs.c | 148 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 D | enroll_specification_check.c | 49 ResultCode CheckIdmOperationToken(int32_t userId, UserAuthTokenHal *authToken) in CheckIdmOperationToken()
|
/drivers/peripheral/user_auth/hdi_service/service/ |
H A D | user_auth_interface_service.cpp | 601 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 D | user_auth_interface_service_test.cpp | 1027 authToken.resize(sizeof(UserAuthTokenHal)); in HWTEST_F()
|