Searched refs:tokenPlain (Results 1 – 4 of 4) sorted by relevance
/drivers/peripheral/user_auth/hdi_service/idm/src/ |
D | enroll_specification_check.c | 55 UserAuthTokenPlain tokenPlain = {0}; in CheckIdmOperationToken() local 56 ResultCode ret = UserAuthTokenVerify(authToken, &tokenPlain); in CheckIdmOperationToken() 61 if (tokenPlain.tokenDataPlain.authType != PIN_AUTH) { in CheckIdmOperationToken() 65 ret = CheckChallenge(tokenPlain.tokenDataPlain.challenge, CHALLENGE_LEN); in CheckIdmOperationToken() 72 …if (ret != RESULT_SUCCESS || userIdGet != userId || userIdGet != tokenPlain.tokenDataToEncrypt.use… in CheckIdmOperationToken() 78 if (ret != RESULT_SUCCESS || secureUid != tokenPlain.tokenDataToEncrypt.secureUid) { in CheckIdmOperationToken() 82 if (!IsValidTokenTime(tokenPlain.tokenDataPlain.time)) { in CheckIdmOperationToken()
|
/drivers/peripheral/user_auth/hdi_service/user_auth/src/ |
D | user_sign_centre.c | 84 …esultCode DecryptTokenCipher(const UserAuthTokenHal *userAuthToken, UserAuthTokenPlain *tokenPlain, in DecryptTokenCipher() argument 107 if (!CheckBufferWithSize(plaintext, sizeof(tokenPlain->tokenDataToEncrypt))) { in DecryptTokenCipher() 112 if (memcpy_s(&(tokenPlain->tokenDataToEncrypt), sizeof(tokenPlain->tokenDataToEncrypt), in DecryptTokenCipher() 146 ResultCode UserAuthTokenVerify(UserAuthTokenHal *userAuthToken, UserAuthTokenPlain *tokenPlain) in UserAuthTokenVerify() argument 148 if (userAuthToken == NULL || tokenPlain == NULL) { in UserAuthTokenVerify() 169 tokenPlain->tokenDataPlain = userAuthToken->tokenDataPlain; in UserAuthTokenVerify() 170 ret = DecryptTokenCipher(userAuthToken, tokenPlain, &tokenKey); in UserAuthTokenVerify()
|
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/ |
D | user_sign_centre.h | 67 ResultCode UserAuthTokenVerify(UserAuthTokenHal *userAuthToken, UserAuthTokenPlain *tokenPlain);
|
/drivers/peripheral/user_auth/test/unittest/user_auth_test/ |
D | user_sign_centre_test.cpp | 30 …esultCode DecryptTokenCipher(const UserAuthTokenHal *userAuthToken, UserAuthTokenPlain *tokenPlain,
|