#include "device/fido/u2f_sign_operation.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/sequenced_task_runner.h"
#include "components/apdu/apdu_response.h"
#include "components/device_event_log/device_event_log.h"
#include "device/fido/authenticator_get_assertion_response.h"
#include "device/fido/ctap_get_assertion_request.h"
#include "device/fido/device_response_converter.h"
#include "device/fido/fido_device.h"
#include "device/fido/fido_parsing_utils.h"
#include "device/fido/u2f_command_constructor.h"
namespace device {
U2fSignOperation::U2fSignOperation(FidoDevice* device,
const CtapGetAssertionRequest& request,
DeviceResponseCallback callback)
: … { … }
U2fSignOperation::~U2fSignOperation() = default;
void U2fSignOperation::Start() { … }
void U2fSignOperation::Cancel() { … }
void U2fSignOperation::WinkAndTrySign() { … }
void U2fSignOperation::TrySign() { … }
void U2fSignOperation::OnSignResponseReceived(
std::optional<std::vector<uint8_t>> device_response) { … }
void U2fSignOperation::WinkAndTryFakeEnrollment() { … }
void U2fSignOperation::TryFakeEnrollment() { … }
void U2fSignOperation::OnEnrollmentResponseReceived(
std::optional<std::vector<uint8_t>> device_response) { … }
const std::vector<uint8_t>& U2fSignOperation::key_handle() const { … }
}