Home
last modified time | relevance | path

Searched refs:HksUserAuthToken (Results 1 – 7 of 7) sorted by relevance

/base/security/huks/test/unittest/huks_standard_test/three_stage_test/include/
Dhks_access_control_test_common.h27 #define AUTH_TOKEN_LEN sizeof(struct HksUserAuthToken)
113 …rypt(const IDMParams &testIDMParams, struct HksBlob *authChallenge, HksUserAuthToken *authTokenHal…
115 int32_t AuthTokenSign(const IDMParams &testIDMParams, HksUserAuthToken *authTokenHal,
118 int32_t AuthTokenMac(const struct HksBlob *keyAlias, const struct HksBlob *inData, HksUserAuthToken
/base/security/huks/services/huks_standard/huks_engine/main/core/include/
Dhks_keyblob.h74 int32_t HksVerifyAuthTokenSign(const struct HksUserAuthToken *authToken);
76 int32_t HksDecryptAuthToken(struct HksUserAuthToken *authToken);
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_secure_access.c280 …32_t HksVerifyKeyChallenge(const struct HuksKeyNode *keyNode, const struct HksUserAuthToken *token, in HksVerifyKeyChallenge()
299 …32_t HksVerifyKeyTimestamp(const struct HuksKeyNode *keyNode, const struct HksUserAuthToken *token) in HksVerifyKeyTimestamp()
324 if (authTokenParam->size != sizeof(struct HksUserAuthToken)) { in CheckAuthToken()
331 static int32_t ParseAuthToken(const struct HksBlob *inAuthTokenParam, struct HksUserAuthToken **out… in ParseAuthToken()
336 struct HksUserAuthToken *authToken = NULL; in ParseAuthToken()
338 authToken = (struct HksUserAuthToken *)HksMalloc(sizeof(struct HksUserAuthToken)); in ParseAuthToken()
345 …(void)memcpy_s(authToken, sizeof(struct HksUserAuthToken), inAuthTokenParam->data, inAuthTokenPara… in ParseAuthToken()
354 static int32_t GetAuthToken(const struct HksParamSet *paramSet, struct HksUserAuthToken **authToken) in GetAuthToken()
386 … VerifyCustomChallenge(const struct HuksKeyNode *keyNode, const struct HksUserAuthToken *authToken) in VerifyCustomChallenge()
395 … VerifyNormalChallenge(const struct HuksKeyNode *keyNode, const struct HksUserAuthToken *authToken) in VerifyNormalChallenge()
[all …]
Dhks_keyblob.c478 int32_t HksVerifyAuthTokenSign(const struct HksUserAuthToken *authToken) in HksVerifyAuthTokenSign()
487 uint32_t authTokenDataSize = sizeof(struct HksUserAuthToken) - SHA256_SIGN_LEN; in HksVerifyAuthTokenSign()
502 int32_t HksDecryptAuthToken(struct HksUserAuthToken *authToken) in HksDecryptAuthToken()
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_access_control_test_common.cpp135 const IDMParams &testIDMParams, HksUserAuthToken *authTokenHal) in AssignAuthToken()
159 …rypt(const IDMParams &testIDMParams, struct HksBlob *authChallenge, HksUserAuthToken *authTokenHal) in AuthTokenEncrypt()
218 int32_t AuthTokenSign(const IDMParams &testIDMParams, HksUserAuthToken *authTokenHal, in AuthTokenSign()
311 HksUserAuthToken *authTokenHal = nullptr; in HksBuildAuthtoken()
313 authTokenHal = static_cast<struct HksUserAuthToken *>(HksMalloc(AUTH_TOKEN_LEN)); in HksBuildAuthtoken()
372 HksUserAuthToken *authTokenHal = nullptr; in HksBuildAuthTokenSecure()
373 authTokenHal = static_cast<struct HksUserAuthToken *>(HksMalloc(AUTH_TOKEN_LEN)); in HksBuildAuthTokenSecure()
Dhks_access_control_rsa_sign_verify_test_common.cpp38 HksUserAuthToken *authTokenHal = nullptr; in RSAAuthTokenSign()
40 authTokenHal = static_cast<struct HksUserAuthToken *>(HksMalloc(AUTH_TOKEN_LEN)); in RSAAuthTokenSign()
/base/security/huks/interfaces/inner_api/huks_standard/main/include/
Dhks_type.h773 typedef struct __attribute__((__packed__)) HksUserAuthToken { struct
780 } __attribute__((__packed__)) HksUserAuthToken; argument