/drivers/peripheral/user_auth/hdi_service/idm/src/ |
D | idm_session.c | 43 uint8_t challenge[CHALLENGE_LEN]; member 58 IAM_STATIC ResultCode GenerateChallenge(uint8_t *challenge, uint32_t challengeLen) in GenerateChallenge() argument 61 if (SecureRandom(challenge, challengeLen) != RESULT_SUCCESS) { in GenerateChallenge() 66 if (challenge[j] != 0) { in GenerateChallenge() 76 ResultCode OpenEditSession(int32_t userId, uint8_t *challenge, uint32_t challengeLen) in OpenEditSession() argument 78 if (challenge == NULL || challengeLen != CHALLENGE_LEN) { in OpenEditSession() 82 (void)memset_s(challenge, CHALLENGE_LEN, 0, CHALLENGE_LEN); in OpenEditSession() 98 ResultCode ret = GenerateChallenge(g_session->challenge, CHALLENGE_LEN); in OpenEditSession() 108 if (memcpy_s(challenge, CHALLENGE_LEN, g_session->challenge, CHALLENGE_LEN) != EOK) { in OpenEditSession() 156 ResultCode CheckChallenge(uint8_t *challenge, uint32_t challengeLen) in CheckChallenge() argument [all …]
|
D | enroll_specification_check.c | 65 ret = CheckChallenge(tokenPlain.tokenDataPlain.challenge, CHALLENGE_LEN); in CheckIdmOperationToken()
|
/drivers/peripheral/user_auth/test/unittest/idm_test/ |
D | idm_session_test.cpp | 30 uint8_t challenge[CHALLENGE_LEN]; member 35 extern ResultCode GenerateChallenge(uint8_t *challenge, uint32_t challengeLen); 89 uint8_t challenge = 0; variable 90 EXPECT_EQ(CheckChallenge(&challenge, 0), RESULT_BAD_PARAM); 91 EXPECT_EQ(CheckChallenge(&challenge, CHALLENGE_LEN), RESULT_NEED_INIT); 96 uint8_t challenge[CHALLENGE_LEN]; variable 97 EXPECT_EQ(memset_s(challenge, CHALLENGE_LEN, 0, CHALLENGE_LEN), EOK); 99 EXPECT_EQ(GenerateChallenge(session.challenge, CHALLENGE_LEN), RESULT_SUCCESS); 101 EXPECT_EQ(CheckChallenge(challenge, CHALLENGE_LEN), RESULT_BAD_MATCH);
|
D | enroll_specification_check_test.cpp | 33 uint8_t challenge[CHALLENGE_LEN]; member 40 extern ResultCode GenerateChallenge(uint8_t *challenge, uint32_t challengeLen); 94 EXPECT_EQ(GenerateChallenge(session.challenge, CHALLENGE_LEN), RESULT_SUCCESS); 104 …EXPECT_EQ(memcpy_s(token.tokenDataPlain.challenge, CHALLENGE_LEN, session.challenge, CHALLENGE_LEN…
|
D | user_idm_funcs_test.cpp | 34 uint8_t challenge[CHALLENGE_LEN]; member
|
/drivers/peripheral/user_auth/test/unittest/service_test/src/ |
D | user_auth_interface_service_test.cpp | 118 std::vector<uint8_t> &challenge, AuthResultTest &authResultTest) in DoOnceAuth() argument 125 authParam.challenge = challenge; in DoOnceAuth() 150 std::vector<uint8_t> challenge; variable 151 EXPECT_EQ(service->OpenSession(userId, challenge), 0); 152 EXPECT_EQ(challenge.size(), 32); 285 std::vector<uint8_t> challenge; variable 286 EXPECT_EQ(service->OpenSession(userId, challenge), 0); 305 std::vector<uint8_t> challenge; variable 306 EXPECT_EQ(service->OpenSession(userId, challenge), 0); 326 std::vector<uint8_t> challenge; variable [all …]
|
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/ |
D | context_manager.h | 32 uint8_t challenge[CHALLENGE_LEN]; member 42 uint8_t challenge[CHALLENGE_LEN]; member 50 uint8_t challenge[CHALLENGE_LEN]; member
|
D | user_sign_centre.h | 36 uint8_t challenge[CHALLENGE_LEN]; member
|
/drivers/peripheral/user_auth/hdi_service/idm/inc/ |
D | idm_session.h | 28 ResultCode OpenEditSession(int32_t userId, uint8_t *challenge, uint32_t challengeLen); 37 ResultCode CheckChallenge(uint8_t *challenge, uint32_t challengeLen);
|
/drivers/peripheral/user_auth/test/fuzztest/user_auth/userauthhdi_fuzzer/ |
D | user_auth_hdi_fuzzer.cpp | 128 FillFuzzUint8Vector(parcel, authSolution.challenge); in FillFuzzAuthSolution() 245 std::vector<uint8_t> challenge; in FuzzOpenSession() local 246 FillFuzzUint8Vector(parcel, challenge); in FuzzOpenSession() 247 g_service.OpenSession(userId, challenge); in FuzzOpenSession() 417 std::vector<uint8_t> challenge; in FuzzBeginIdentification() local 418 FillFuzzUint8Vector(parcel, challenge); in FuzzBeginIdentification() 422 g_service.BeginIdentification(contextId, authType, challenge, executorId, scheduleInfo); in FuzzBeginIdentification() 431 std::vector<uint8_t> challenge; in FuzzBeginIdentificationV1_1() local 432 FillFuzzUint8Vector(parcel, challenge); in FuzzBeginIdentificationV1_1() 436 g_service.BeginIdentificationV1_1(contextId, authType, challenge, executorId, scheduleInfo); in FuzzBeginIdentificationV1_1()
|
/drivers/peripheral/user_auth/hdi_service/service/ |
D | user_auth_interface_service.cpp | 238 …if (!param.challenge.empty() && memcpy_s(solutionIn.challenge, CHALLENGE_LEN, param.challenge.data… in BeginAuthenticationV1_1() 239 param.challenge.size()) != EOK) { in BeginAuthenticationV1_1() 400 const std::vector<uint8_t> &challenge, uint32_t executorSensorHint, ScheduleInfo &scheduleInfo) in BeginIdentification() argument 404 …int32_t ret = BeginIdentificationV1_1(contextId, authType, challenge, executorSensorHint, infoV1_1… in BeginIdentification() 410 …const std::vector<uint8_t> &challenge, uint32_t executorSensorHint, ScheduleInfoV1_1 &scheduleInfo) in BeginIdentificationV1_1() argument 421 …if (!challenge.empty() && memcpy_s(param.challenge, CHALLENGE_LEN, challenge.data(), challenge.siz… in BeginIdentificationV1_1() 522 int32_t UserAuthInterfaceService::OpenSession(int32_t userId, std::vector<uint8_t> &challenge) in OpenSession() argument 526 challenge.resize(CHALLENGE_LEN); in OpenSession() 527 int32_t ret = OpenEditSession(userId, challenge.data(), challenge.size()); in OpenSession() 530 challenge.clear(); in OpenSession()
|
/drivers/interface/user_auth/v1_1/ |
D | IUserAuthInterface.idl | 81 * @param challenge Indicates the identification challenge. 89 …tionV1_1([in] unsigned long contextId, [in] enum AuthType authType, [in] unsigned char[] challenge,
|
/drivers/peripheral/user_auth/hdi_service/user_auth/src/ |
D | context_manager.c | 67 if (memcpy_s(context->challenge, CHALLENGE_LEN, params.challenge, CHALLENGE_LEN) != EOK) { in InitAuthContext() 147 if (memcpy_s(context->challenge, CHALLENGE_LEN, params->challenge, CHALLENGE_LEN) != EOK) { in InitIdentifyContext()
|
D | user_sign_centre.c | 181 …if (memcpy_s(authToken->tokenDataPlain.challenge, CHALLENGE_LEN, context->challenge, CHALLENGE_LEN… in GetTokenDataPlain()
|
/drivers/interface/user_auth/v1_0/ |
D | IUserAuthInterface.idl | 81 … * @param challenge Indicates the random number, which is used to generate an authentication token. 86 OpenSession([in] int userId, [out] unsigned char[] challenge); 230 * @param challenge Indicates the identification challenge. 240 …fication([in] unsigned long contextId, [in] enum AuthType authType, [in] unsigned char[] challenge,
|
D | UserAuthTypes.idl | 187 unsigned char[] challenge;
|
/drivers/peripheral/user_auth/test/unittest/user_auth_test/ |
D | user_sign_centre_test.cpp | 93 .challenge = DEAULT_CHALLENGE,
|