Searched refs:tokenKey (Results 1 - 3 of 3) sorted by relevance
/drivers/peripheral/user_auth/hdi_service/common/src/ |
H A D | user_sign_centre.c | 48 IAM_STATIC ResultCode UserAuthTokenHmac(UserAuthTokenHal *userAuthToken, HksAuthTokenKey *tokenKey) in UserAuthTokenHmac() argument 53 const Buffer key = GetTmpBuffer(tokenKey->macKey, sizeof(tokenKey->macKey), sizeof(tokenKey->macKey)); in UserAuthTokenHmac() 84 HksAuthTokenKey *tokenKey) in DecryptTokenCipher() 87 .key = CreateBufferByData(tokenKey->cipherKey, sizeof(tokenKey->cipherKey)), in DecryptTokenCipher() 124 IAM_STATIC ResultCode CheckUserAuthTokenHmac(const UserAuthTokenHal *userAuthToken, HksAuthTokenKey *tokenKey) in CheckUserAuthTokenHmac() argument 128 const Buffer key = GetTmpBuffer(tokenKey->macKey, sizeof(tokenKey in CheckUserAuthTokenHmac() 83 DecryptTokenCipher(const UserAuthTokenHal *userAuthToken, UserAuthTokenPlain *tokenPlain, HksAuthTokenKey *tokenKey) DecryptTokenCipher() argument 155 HksAuthTokenKey tokenKey = {}; UserAuthTokenVerify() local 177 InitAesGcmParam(AesGcmParam *aesGcmParam, const HksAuthTokenKey *tokenKey) InitAesGcmParam() argument 230 GetTokenDataCipherResult(const TokenDataToEncrypt *data, UserAuthTokenHal *authToken, const HksAuthTokenKey *tokenKey) GetTokenDataCipherResult() argument 268 HksAuthTokenKey tokenKey = {}; UserAuthTokenSign() local 306 HksAuthTokenKey tokenKey = {}; ReuseUnlockTokenSign() local [all...] |
/drivers/peripheral/user_auth/test/unittest/idm_test/ |
H A D | enroll_specification_check_test.cpp | 41 extern ResultCode UserAuthTokenHmac(UserAuthTokenHal *userAuthToken, HksAuthTokenKey *tokenKey); 43 const HksAuthTokenKey *tokenKey); 63 #define GENERATE_TOKEN(dataToEncrypt, userAuthTokenHal, tokenKey) \ 65 EXPECT_EQ(GetTokenDataCipherResult(&(dataToEncrypt), &(userAuthTokenHal), &(tokenKey)), RESULT_SUCCESS); \ 66 EXPECT_EQ(UserAuthTokenHmac(&(userAuthTokenHal), &(tokenKey)), RESULT_SUCCESS); \ 78 HksAuthTokenKey tokenKey = {}; in HWTEST_F() local 79 EXPECT_EQ(GetTokenKey(&tokenKey), RESULT_SUCCESS); in HWTEST_F() 80 GENERATE_TOKEN(data, token, tokenKey); in HWTEST_F() 85 GENERATE_TOKEN(data, token, tokenKey); in HWTEST_F() 89 GENERATE_TOKEN(data, token, tokenKey); in HWTEST_F() 121 HksAuthTokenKey tokenKey = {}; HWTEST_F() local [all...] |
/drivers/peripheral/user_auth/test/unittest/user_auth_test/ |
H A D | user_sign_centre_test.cpp | 31 const HksAuthTokenKey *tokenKey); 33 HksAuthTokenKey *tokenKey); 34 extern ResultCode CheckUserAuthTokenHmac(const UserAuthTokenHal *userAuthToken, HksAuthTokenKey *tokenKey); 136 HksAuthTokenKey tokenKey = {}; in HWTEST_F() local 137 EXPECT_EQ(CheckUserAuthTokenHmac(&userAuthToken, &tokenKey), RESULT_BAD_SIGN); in HWTEST_F()
|
Completed in 2 milliseconds