Home
last modified time | relevance | path

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

/system/gatekeeper/
Dgatekeeper.cpp50 if (!request.password_handle) { in Enroll()
54 const password_handle_t *pw_handle = request.password_handle.Data<password_handle_t>(); in Enroll()
106 SizedBuffer password_handle; in Enroll() local
107 if (!CreatePasswordHandle(&password_handle, in Enroll()
113 response->SetEnrolledPasswordHandle(move(password_handle)); in Enroll()
119 if (!request.provided_password || !request.password_handle) { in Verify()
124 const password_handle_t *password_handle = request.password_handle.Data<password_handle_t>(); in Verify() local
126 if (!password_handle || password_handle->version > HANDLE_VERSION) { in Verify()
131 secure_id_t user_id = password_handle->user_id; in Verify()
138 bool throttle = (password_handle->version >= HANDLE_VERSION_THROTTLE); in Verify()
[all …]
Dgatekeeper_messages.cpp165 this->password_handle = move(enrolled_password_handle); in VerifyRequest()
170 return sizeof(challenge) + serialized_buffer_size(password_handle) in nonErrorSerializedSize()
177 append_to_buffer(&buffer, password_handle); in nonErrorSerialize()
184 password_handle = {}; in nonErrorDeserialize()
192 error = read_from_buffer(&payload, end, &password_handle); in nonErrorDeserialize()
236 EnrollRequest::EnrollRequest(uint32_t user_id, SizedBuffer password_handle, in EnrollRequest() argument
242 this->password_handle = move(password_handle); in EnrollRequest()
247 + serialized_buffer_size(password_handle); in nonErrorSerializedSize()
253 append_to_buffer(&buffer, password_handle); in nonErrorSerialize()
261 password_handle = {}; in nonErrorDeserialize()
[all …]
/system/gatekeeper/tests/
Dgatekeeper_messages_test.cpp69 ASSERT_FALSE(deserialized_msg.password_handle); in TEST()
92 ASSERT_FALSE(deserialized_msg.password_handle); in TEST()
99 SizedBuffer password_handle = make_buffer(password_size); in TEST() local
104 …EnrollRequest msg(USER_ID, move(password_handle), move(provided_password), move(enrolled_password)… in TEST()
117 deserialized_handle = &deserialized_msg.password_handle; in TEST()
124 …ASSERT_EQ(0, memcmp(msg.password_handle.Data<uint8_t>(), deserialized_handle->Data<uint8_t>(), pas… in TEST()
167 deserialized_password = &deserialized_msg.password_handle; in TEST()
172 deserialized_password = &deserialized_msg.password_handle; in TEST()
174 ASSERT_EQ(0, memcmp(msg.password_handle.Data<uint8_t>(), deserialized_password->Data<uint8_t>(), in TEST()
/system/gatekeeper/include/gatekeeper/
Dgatekeeper_messages.h182 SizedBuffer password_handle; member
201 EnrollRequest(uint32_t user_id, SizedBuffer password_handle,
213 SizedBuffer password_handle; member
Dgatekeeper.h201 bool CreatePasswordHandle(SizedBuffer *password_handle, salt_t salt,
/system/core/trusty/gatekeeper/
Dtrusty_gatekeeper.cpp102 const ::gatekeeper::password_handle_t* password_handle = in enroll() local
106 static_cast<int64_t>(password_handle->user_id), in enroll()