Home
last modified time | relevance | path

Searched refs:password_handle_t (Results 1 – 5 of 5) sorted by relevance

/system/gatekeeper/
Dgatekeeper.cpp41 const password_handle_t *pw_handle = request.password_handle.Data<password_handle_t>(); in Enroll()
111 const password_handle_t *password_handle = request.password_handle.Data<password_handle_t>(); in Verify()
184 password_handle_t password_handle; in CreatePasswordHandle()
195 static_assert(offsetof(password_handle_t, salt) == metadata_length, in CreatePasswordHandle()
217 uint8_t *ph_buffer = new(std::nothrow) uint8_t[sizeof(password_handle_t)]; in CreatePasswordHandle()
220 *password_handle_buffer = { ph_buffer, sizeof(password_handle_t) }; in CreatePasswordHandle()
221 memcpy(ph_buffer, &password_handle, sizeof(password_handle_t)); in CreatePasswordHandle()
226 bool GateKeeper::DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password) { in DoVerify()
235 const password_handle_t *generated_handle = provided_handle.Data<password_handle_t>(); in DoVerify()
/system/gatekeeper/tests/
Dgatekeeper_device_test.cpp23 using ::gatekeeper::password_handle_t;
215 password_handle_t *handle = reinterpret_cast<password_handle_t *>(password_handle); in TEST_F()
222 handle = reinterpret_cast<password_handle_t *>(password_handle); in TEST_F()
239 password_handle_t *handle = reinterpret_cast<password_handle_t *>(password_handle); in TEST_F()
246 handle = reinterpret_cast<password_handle_t *>(password_handle); in TEST_F()
/system/core/gatekeeperd/
Dgatekeeperd.cpp188 if (currentPasswordHandle->size() != sizeof(gatekeeper::password_handle_t)) { in enroll()
220 if (gkResponse->payload().size() != sizeof(gatekeeper::password_handle_t)) { in enroll()
226 const gatekeeper::password_handle_t* handle = in enroll()
227 reinterpret_cast<const gatekeeper::password_handle_t*>( in enroll()
265 if (enrolledPasswordHandle.size() != sizeof(gatekeeper::password_handle_t)) { in verifyChallenge()
269 const gatekeeper::password_handle_t* handle = in verifyChallenge()
270 reinterpret_cast<const gatekeeper::password_handle_t*>( in verifyChallenge()
/system/gatekeeper/include/gatekeeper/
Dpassword_handle.h33 struct __attribute__ ((__packed__)) password_handle_t { struct
Dgatekeeper.h186 virtual bool DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password);