Home
last modified time | relevance | path

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

/system/gatekeeper/tests/
Dgatekeeper_device_test.cpp57 uint8_t *password_handle; in TEST_F() local
64 &password_handle, &password_handle_length); in TEST_F()
70 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
80 uint8_t *password_handle; in TEST_F() local
88 &password_handle, &password_handle_length); in TEST_F()
93 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
107 uint8_t *password_handle; in TEST_F() local
115 &password_handle, &password_handle_length); in TEST_F()
125 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
142 ret = device->verify(device, 400, 0, password_handle, password_handle_length, in TEST_F()
[all …]
Dgatekeeper_messages_test.cpp71 ASSERT_EQ((uint32_t) 0, deserialized_msg.password_handle.length); in TEST()
72 ASSERT_EQ(NULL, deserialized_msg.password_handle.buffer.get()); in TEST()
100 ASSERT_EQ((uint32_t) 0, deserialized_msg.password_handle.length); in TEST()
101 ASSERT_EQ(NULL, deserialized_msg.password_handle.buffer.get()); in TEST()
109 SizedBuffer *password_handle = make_buffer(password_size); in TEST() local
114 EnrollRequest msg(USER_ID, password_handle, provided_password, enrolled_password); in TEST()
127 deserialized_handle = &deserialized_msg.password_handle; in TEST()
134 …ASSERT_EQ(0, memcmp(msg.password_handle.buffer.get(), deserialized_handle->buffer.get(), password_… in TEST()
137 delete password_handle; in TEST()
167 *password_handle = make_buffer(password_size); in TEST() local
[all …]
/system/gatekeeper/
Dgatekeeper_messages.cpp138 this->password_handle.buffer.reset(enrolled_password_handle->buffer.release()); in VerifyRequest()
139 this->password_handle.length = enrolled_password_handle->length; in VerifyRequest()
145 memset_s(&password_handle, 0, sizeof(password_handle)); in VerifyRequest()
150 if (password_handle.buffer.get()) { in ~VerifyRequest()
151 password_handle.buffer.reset(); in ~VerifyRequest()
161 return sizeof(challenge) + serialized_buffer_size(password_handle) in nonErrorSerializedSize()
168 append_to_buffer(&buffer, &password_handle); in nonErrorSerialize()
175 if (password_handle.buffer.get()) { in nonErrorDeserialize()
176 password_handle.buffer.reset(); in nonErrorDeserialize()
187 error = read_from_buffer(&payload, end, &password_handle); in nonErrorDeserialize()
[all …]
Dgatekeeper.cpp36 if (request.password_handle.buffer.get() == NULL) { in Enroll()
41 reinterpret_cast<password_handle_t *>(request.password_handle.buffer.get()); in Enroll()
93 SizedBuffer password_handle; in Enroll() local
94 if (!CreatePasswordHandle(&password_handle, in Enroll()
101 response->SetEnrolledPasswordHandle(&password_handle); in Enroll()
107 if (!request.provided_password.buffer.get() || !request.password_handle.buffer.get()) { in Verify()
112 password_handle_t *password_handle = reinterpret_cast<password_handle_t *>( in Verify() local
113 request.password_handle.buffer.get()); in Verify()
115 if (password_handle->version > HANDLE_VERSION) { in Verify()
120 secure_id_t user_id = password_handle->user_id; in Verify()
[all …]
/system/core/gatekeeperd/tests/
Dgatekeeper_test.cpp97 SizedBuffer password_handle; in TEST() local
107 password_handle.buffer.reset(new uint8_t[enroll_response.enrolled_password_handle.length]); in TEST()
108 password_handle.length = enroll_response.enrolled_password_handle.length; in TEST()
109 memcpy(password_handle.buffer.get(), enroll_response.enrolled_password_handle.buffer.get(), in TEST()
110 password_handle.length); in TEST()
131 EnrollRequest enroll_request(0, &password_handle, &password, &provided_password); in TEST()
196 SizedBuffer password_handle; in TEST() local
199 VerifyRequest request(0, 0, &provided_password, &password_handle); in TEST()
/system/gatekeeper/include/gatekeeper/
Dgatekeeper_messages.h151 SizedBuffer password_handle; member
171 EnrollRequest(uint32_t user_id, SizedBuffer *password_handle,
184 SizedBuffer password_handle; member
Dgatekeeper.h185 bool CreatePasswordHandle(SizedBuffer *password_handle, salt_t salt,