#include "device/fido/bio/enrollment.h"
#include "components/cbor/diagnostic_writer.h"
#include "components/cbor/writer.h"
#include "components/device_event_log/device_event_log.h"
namespace device {
static void SetPinAuth(BioEnrollmentRequest* request,
const pin::TokenResponse& token) { … }
BioEnrollmentRequest BioEnrollmentRequest::ForGetModality(Version version) { … }
BioEnrollmentRequest BioEnrollmentRequest::ForGetSensorInfo(Version version) { … }
BioEnrollmentRequest BioEnrollmentRequest::ForEnrollBegin(
Version version,
const pin::TokenResponse& token) { … }
BioEnrollmentRequest BioEnrollmentRequest::ForEnrollNextSample(
Version version,
const pin::TokenResponse& token,
std::vector<uint8_t> template_id) { … }
BioEnrollmentRequest BioEnrollmentRequest::ForCancel(Version version) { … }
BioEnrollmentRequest BioEnrollmentRequest::ForEnumerate(
Version version,
const pin::TokenResponse& token) { … }
BioEnrollmentRequest BioEnrollmentRequest::ForRename(
Version version,
const pin::TokenResponse& token,
std::vector<uint8_t> id,
std::string name) { … }
BioEnrollmentRequest BioEnrollmentRequest::ForDelete(
Version version,
const pin::TokenResponse& token,
std::vector<uint8_t> id) { … }
BioEnrollmentRequest::BioEnrollmentRequest(BioEnrollmentRequest&&) = default;
BioEnrollmentRequest& BioEnrollmentRequest::operator=(BioEnrollmentRequest&&) =
default;
BioEnrollmentRequest::BioEnrollmentRequest(Version v) : … { … }
BioEnrollmentRequest::~BioEnrollmentRequest() = default;
std::optional<BioEnrollmentResponse> BioEnrollmentResponse::Parse(
const std::optional<cbor::Value>& cbor_response) { … }
BioEnrollmentResponse::BioEnrollmentResponse() = default;
BioEnrollmentResponse::BioEnrollmentResponse(BioEnrollmentResponse&&) = default;
BioEnrollmentResponse::~BioEnrollmentResponse() = default;
bool BioEnrollmentResponse::operator==(const BioEnrollmentResponse& r) const { … }
std::pair<CtapRequestCommand, std::optional<cbor::Value>>
AsCTAPRequestValuePair(const BioEnrollmentRequest& request) { … }
}