Lines Matching refs:password_handle
50 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()
139 bool throttle_secure = password_handle->flags & HANDLE_FLAG_THROTTLE_SECURE; in Verify()
159 if (DoVerify(password_handle, request.provided_password)) { in Verify()
197 password_handle_t password_handle; in CreatePasswordHandle() local
199 password_handle.version = handle_version; in CreatePasswordHandle()
200 password_handle.salt = salt; in CreatePasswordHandle()
201 password_handle.user_id = user_id; in CreatePasswordHandle()
202 password_handle.flags = flags; in CreatePasswordHandle()
203 password_handle.hardware_backed = IsHardwareBacked(); in CreatePasswordHandle()
205 constexpr uint32_t metadata_length = sizeof(password_handle.version) + in CreatePasswordHandle()
206 sizeof(password_handle.user_id) + in CreatePasswordHandle()
207 sizeof(password_handle.flags); in CreatePasswordHandle()
216 memcpy(to_sign.get(), &password_handle, metadata_length); in CreatePasswordHandle()
227 ComputePasswordSignature(password_handle.signature, sizeof(password_handle.signature), in CreatePasswordHandle()
234 memcpy(ph_buffer, &password_handle, sizeof(password_handle_t)); in CreatePasswordHandle()