#include "device/fido/attestation_object.h"
#include <utility>
#include "components/cbor/reader.h"
#include "components/cbor/values.h"
#include "components/cbor/writer.h"
#include "device/fido/attestation_statement.h"
#include "device/fido/authenticator_data.h"
#include "device/fido/fido_constants.h"
#include "device/fido/opaque_attestation_statement.h"
#include "device/fido/public_key.h"
namespace device {
AttestationObject::ResponseFields::ResponseFields() = default;
AttestationObject::ResponseFields::~ResponseFields() = default;
AttestationObject::ResponseFields::ResponseFields(ResponseFields&&) = default;
std::optional<AttestationObject> AttestationObject::Parse(
const cbor::Value& value) { … }
std::optional<AttestationObject::ResponseFields>
AttestationObject::ParseForResponseFields(
std::vector<uint8_t> attestation_object_bytes,
bool attestation_acceptable) { … }
AttestationObject::AttestationObject(
AuthenticatorData data,
std::unique_ptr<AttestationStatement> statement)
: … { … }
AttestationObject::AttestationObject(AttestationObject&& other) = default;
AttestationObject& AttestationObject::operator=(AttestationObject&& other) =
default;
AttestationObject::~AttestationObject() = default;
std::vector<uint8_t> AttestationObject::GetCredentialId() const { … }
bool AttestationObject::EraseAttestationStatement(
AttestationObject::AAGUID erase_aaguid) { … }
bool AttestationObject::EraseExtension(std::string_view name) { … }
bool AttestationObject::IsSelfAttestation() { … }
bool AttestationObject::IsAttestationCertificateInappropriatelyIdentifying() { … }
cbor::Value AsCBOR(const AttestationObject& object) { … }
}