/test/xts/device_attest/services/core/attest/ |
D | attest_service_auth.c | 637 AuthResult* authResult = (AuthResult *)ATTEST_MEM_MALLOC(sizeof(AuthResult)); in CreateAuthResult() local 638 if (authResult == NULL) { in CreateAuthResult() 642 authResult->errorCode = 0; in CreateAuthResult() 643 authResult->ticket = NULL; in CreateAuthResult() 644 authResult->sysPolicy = NULL; in CreateAuthResult() 645 authResult->tokenId = NULL; in CreateAuthResult() 646 authResult->tokenValue = NULL; in CreateAuthResult() 647 authResult->authStatus = NULL; in CreateAuthResult() 648 return authResult; in CreateAuthResult() 657 AuthResult* authResult = *auth; in DestroyAuthResult() local [all …]
|
D | attest_service_active.c | 30 int32_t GenActiveMsg(AuthResult* authResult, const ChallengeResult* challengeResult, DevicePacket**… in GenActiveMsg() argument 33 if (authResult == NULL || challengeResult == NULL || devPacket == NULL) { in GenActiveMsg() 38 if (authResult->ticket == NULL || authResult->tokenValue == NULL) { in GenActiveMsg() 43 …if (strlen(authResult->ticket) == 0 || strlen(authResult->tokenValue) == 0 || strlen(authResult->t… in GenActiveMsg() 66 devicePacket->ticket = AttestStrdup(authResult->ticket); in GenActiveMsg()
|
D | attest_service.c | 98 static int32_t AuthDevice(AuthResult* authResult) in AuthDevice() argument 101 if (authResult == NULL) { in AuthDevice() 130 ret = ParseAuthResultResp(respMsg, authResult); in AuthDevice() 143 static int32_t ActiveToken(AuthResult* authResult) in ActiveToken() argument 146 if (authResult == NULL) { in ActiveToken() 151 int32_t ret = FlushToken(authResult); in ActiveToken() 168 ret = GenActiveMsg(authResult, (const ChallengeResult*)challenge, &reqMsg); in ActiveToken() 211 static int32_t AttestStartup(AuthResult *authResult) in AttestStartup() argument 213 if (authResult == NULL) { in AttestStartup() 234 ret = AuthDevice(authResult); in AttestStartup() [all …]
|
/test/xts/device_attest_lite/services/core/attest/ |
D | attest_service_auth.c | 657 AuthResult* authResult = (AuthResult *)ATTEST_MEM_MALLOC(sizeof(AuthResult)); in CreateAuthResult() local 658 if (authResult == NULL) { in CreateAuthResult() 662 authResult->errorCode = 0; in CreateAuthResult() 663 authResult->ticket = NULL; in CreateAuthResult() 664 authResult->sysPolicy = NULL; in CreateAuthResult() 665 authResult->tokenId = NULL; in CreateAuthResult() 666 authResult->tokenValue = NULL; in CreateAuthResult() 667 authResult->authStatus = NULL; in CreateAuthResult() 668 return authResult; in CreateAuthResult() 677 AuthResult* authResult = *auth; in DestroyAuthResult() local [all …]
|
D | attest_service_active.c | 30 int32_t GenActiveMsg(AuthResult* authResult, const ChallengeResult* challengeResult, DevicePacket**… in GenActiveMsg() argument 33 if (authResult == NULL || challengeResult == NULL || devPacket == NULL) { in GenActiveMsg() 38 if (authResult->ticket == NULL || authResult->tokenValue == NULL) { in GenActiveMsg() 43 …if (strlen(authResult->ticket) == 0 || strlen(authResult->tokenValue) == 0 || strlen(authResult->t… in GenActiveMsg() 66 devicePacket->ticket = AttestStrdup(authResult->ticket); in GenActiveMsg()
|
D | attest_service.c | 126 static int32_t AuthDevice(AuthResult* authResult) in AuthDevice() argument 129 if (authResult == NULL) { in AuthDevice() 158 ret = ParseAuthResultResp(respMsg, authResult); in AuthDevice() 171 static int32_t ActiveToken(AuthResult* authResult) in ActiveToken() argument 174 if (authResult == NULL) { in ActiveToken() 179 int32_t ret = FlushToken(authResult); in ActiveToken() 196 ret = GenActiveMsg(authResult, (const ChallengeResult*)challenge, &reqMsg); in ActiveToken() 243 static int32_t AttestStartup(AuthResult *authResult) in AttestStartup() argument 245 if (authResult == NULL) { in AttestStartup() 266 ret = AuthDevice(authResult); in AttestStartup() [all …]
|
/test/xts/device_attest_lite/test/tdd/gtest/ |
D | attest_tdd_test.cpp | 121 AuthResult *authResult = CreateAuthResult(); in GetAuthResult() local 122 if (authResult == nullptr) { in GetAuthResult() 125 int32_t ret = ParseAuthResultResp(ATTEST_AUTH_EXPECT_RESULT, authResult); in GetAuthResult() 127 DestroyAuthResult(&authResult); in GetAuthResult() 130 return authResult; in GetAuthResult() 139 AuthResult *authResult = GetAuthResult(); in TddGenActiveMsg() local 140 if (authResult == nullptr) { in TddGenActiveMsg() 156 int32_t ret = GenActiveMsg(authResult, &challenge, &reqMsg); in TddGenActiveMsg() 157 DestroyAuthResult(&authResult); in TddGenActiveMsg() 402 AuthResult *authResult = GetAuthResult(); variable [all …]
|
/test/xts/device_attest/services/devattest_ability/test/tdd/gtest/src/ |
D | attest_tdd_test.cpp | 75 AuthResult *authResult = CreateAuthResult(); in GetAuthResult() local 76 if (authResult == nullptr) { in GetAuthResult() 79 int32_t ret = ParseAuthResultResp(ATTEST_AUTH_EXPECT_RESULT, authResult); in GetAuthResult() 81 DestroyAuthResult(&authResult); in GetAuthResult() 84 return authResult; in GetAuthResult() 87 static void WriteAuthResult(AuthResult *authResult) in WriteAuthResult() argument 89 int32_t ret = FlushToken(authResult); in WriteAuthResult() 242 AuthResult *authResult = GetAuthResult(); in TddGenMsg() local 243 ret = GenActiveMsg(authResult, &challenge, &reqMsg); in TddGenMsg() 321 AuthResult *authResult = GetAuthResult(); variable [all …]
|
/test/xts/device_attest_lite/services/core/dfx/ |
D | attest_dfx.c | 159 void PrintAuthResult(AuthResult* authResult) in PrintAuthResult() argument 162 if (authResult == NULL) { in PrintAuthResult() 166 ATTEST_LOG_INFO("errorCode = %d;", authResult->errorCode); in PrintAuthResult() 168 if (authResult->ticket == NULL) { in PrintAuthResult() 171 ATTEST_LOG_INFO_ANONY("ticket = %s;", authResult->ticket); in PrintAuthResult() 173 if (authResult->tokenValue == NULL) { in PrintAuthResult() 176 ATTEST_LOG_INFO_ANONY("tokenValue = %s;", authResult->tokenValue); in PrintAuthResult() 178 if (authResult->tokenId == NULL) { in PrintAuthResult() 181 ATTEST_LOG_INFO_ANONY("tokenId = %s;", authResult->tokenId); in PrintAuthResult() 183 if (authResult->authStatus == NULL) { in PrintAuthResult()
|
/test/xts/device_attest/services/core/dfx/ |
D | attest_dfx.c | 159 void PrintAuthResult(AuthResult* authResult) in PrintAuthResult() argument 162 if (authResult == NULL) { in PrintAuthResult() 166 ATTEST_LOG_INFO("errorCode = %d;", authResult->errorCode); in PrintAuthResult() 168 if (authResult->ticket == NULL) { in PrintAuthResult() 171 ATTEST_LOG_INFO_ANONY("ticket = %s;", authResult->ticket); in PrintAuthResult() 173 if (authResult->tokenValue == NULL) { in PrintAuthResult() 176 ATTEST_LOG_INFO_ANONY("tokenValue = %s;", authResult->tokenValue); in PrintAuthResult() 178 if (authResult->tokenId == NULL) { in PrintAuthResult() 181 ATTEST_LOG_INFO_ANONY("tokenId = %s;", authResult->tokenId); in PrintAuthResult() 183 if (authResult->authStatus == NULL) { in PrintAuthResult()
|
/test/xts/device_attest/services/core/include/attest/ |
D | attest_service_auth.h | 52 void DestroyAuthResult(AuthResult** authResult); 58 int32_t ParseAuthResultResp(const char* msg, AuthResult* authResult);
|
D | attest_service_active.h | 27 int32_t GenActiveMsg(AuthResult* authResult, const ChallengeResult* challengeResult, DevicePacket**…
|
/test/xts/device_attest_lite/services/core/include/attest/ |
D | attest_service_auth.h | 51 void DestroyAuthResult(AuthResult** authResult); 57 int32_t ParseAuthResultResp(const char* msg, AuthResult* authResult);
|
D | attest_service_active.h | 25 int32_t GenActiveMsg(AuthResult* authResult, const ChallengeResult* challengeResult, DevicePacket**…
|
/test/xts/acts/xts_lite/device_attest_lite/device_attestQuerry_posix/src/ |
D | device_attest_querry.cpp | 50 if (!AttestStatusNumberValid(attestResultInfo.authResult)) { in AttestStatusValid() 51 failString += string(" authResult is ") + to_string(attestResultInfo.authResult); in AttestStatusValid() 83 if (attestResultInfo.authResult == DEVATTEST_SUCCESS) { in AttestStatusValid()
|
/test/xts/acts/account/appaccount/sceneProject/actsaccountauthenticator/entry/src/main/ets/ServiceExtAbility/ |
D | ServiceExtAbility.ets | 46 let authResult = { 50 callback.onResult(0, authResult); 71 let authResult = { 77 callback.onResult(0, authResult); 83 let authResult = { 93 callback.onResult(0, authResult);
|
/test/xts/device_attest_lite/services/core/security/ |
D | attest_security_token.c | 543 int32_t FlushToken(AuthResult* authResult) in FlushToken() argument 546 if (authResult == NULL || authResult->tokenValue == NULL) { in FlushToken() 551 ATTEST_DFX_AUTH_RESULT(authResult); in FlushToken() 553 uint32_t tokenIdLen = (authResult->tokenId == NULL) ? 0 : strlen(authResult->tokenId); in FlushToken() 554 uint32_t tokenValueLen = (authResult->tokenValue == NULL) ? 0 : strlen(authResult->tokenValue); in FlushToken() 555 … int32_t ret = WriteToken(authResult->tokenValue, tokenValueLen, authResult->tokenId, tokenIdLen); in FlushToken()
|
/test/xts/device_attest/services/core/security/ |
D | attest_security_token.c | 568 int32_t FlushToken(AuthResult* authResult) in FlushToken() argument 571 if (authResult == NULL || authResult->tokenValue == NULL) { in FlushToken() 576 ATTEST_DFX_AUTH_RESULT(authResult); in FlushToken() 578 uint32_t tokenIdLen = (authResult->tokenId == NULL) ? 0 : strlen(authResult->tokenId); in FlushToken() 579 uint32_t tokenValueLen = (authResult->tokenValue == NULL) ? 0 : strlen(authResult->tokenValue); in FlushToken() 580 … int32_t ret = WriteToken(authResult->tokenValue, tokenValueLen, authResult->tokenId, tokenIdLen); in FlushToken()
|
/test/xts/acts/xts_lite/device_attest_lite/device_attestStart_hal/src/ |
D | device_attest.c | 69 if (!AttestStatusNumberValid(attestResultInfo.authResult)) { in AttestStatusValid() 90 if (attestResultInfo.authResult == DEVATTEST_SUCCESS) { in AttestStatusValid()
|
/test/xts/device_attest/interfaces/kits/js/ |
D | @ohos.deviceAttest.d.ts | 76 authResult : number;
|
/test/xts/device_attest_lite/interfaces/innerkits/ |
D | attest_result_info.h | 29 int32_t authResult; member
|
/test/xts/device_attest/services/core/include/security/ |
D | attest_security_token.h | 39 int32_t FlushToken(AuthResult* authResult);
|
/test/xts/device_attest_lite/services/core/include/security/ |
D | attest_security_token.h | 39 int32_t FlushToken(AuthResult* authResult);
|
/test/xts/device_attest_lite/framework/small/src/service/ |
D | attest_framework_feature.c | 102 if (!WriteInt32(reply, attestResultInfo->authResult) || in WriteAttestResultInfo() 129 attestResultInfo.authResult = DEVATTEST_RESULT_INIT; in FeatureQueryAttest()
|
/test/xts/device_attest_lite/test/startup/ |
D | attest_framework_client_start.c | 44 attestResultInfo.authResult, attestResultInfo.softwareResult); in main()
|