Home
last modified time | relevance | path

Searched refs:challenge (Results 1 – 17 of 17) sorted by relevance

/drivers/peripheral/user_auth/hdi_service/idm/src/
Didm_session.c43 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 …]
Denroll_specification_check.c65 ret = CheckChallenge(tokenPlain.tokenDataPlain.challenge, CHALLENGE_LEN); in CheckIdmOperationToken()
/drivers/peripheral/user_auth/test/unittest/idm_test/
Didm_session_test.cpp30 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);
Denroll_specification_check_test.cpp33 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…
Duser_idm_funcs_test.cpp34 uint8_t challenge[CHALLENGE_LEN]; member
/drivers/peripheral/user_auth/test/unittest/service_test/src/
Duser_auth_interface_service_test.cpp118 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/
Dcontext_manager.h32 uint8_t challenge[CHALLENGE_LEN]; member
42 uint8_t challenge[CHALLENGE_LEN]; member
50 uint8_t challenge[CHALLENGE_LEN]; member
Duser_sign_centre.h36 uint8_t challenge[CHALLENGE_LEN]; member
/drivers/peripheral/user_auth/hdi_service/idm/inc/
Didm_session.h28 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/
Duser_auth_hdi_fuzzer.cpp128 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/
Duser_auth_interface_service.cpp238 …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/
DIUserAuthInterface.idl81 * @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/
Dcontext_manager.c67 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()
Duser_sign_centre.c181 …if (memcpy_s(authToken->tokenDataPlain.challenge, CHALLENGE_LEN, context->challenge, CHALLENGE_LEN… in GetTokenDataPlain()
/drivers/interface/user_auth/v1_0/
DIUserAuthInterface.idl81 … * @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,
DUserAuthTypes.idl187 unsigned char[] challenge;
/drivers/peripheral/user_auth/test/unittest/user_auth_test/
Duser_sign_centre_test.cpp93 .challenge = DEAULT_CHALLENGE,