#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "device/fido/cbor_extract.h"
#include <type_traits>
#include "base/check_op.h"
#include "base/functional/callback.h"
#include "base/memory/raw_span.h"
#include "components/cbor/values.h"
namespace device {
namespace cbor_extract {
namespace {
Type;
static_assert …;
const bool kTrue = …;
const bool kFalse = …;
constexpr uint8_t CBORTypeToBitfield(const cbor::Value::Type type) { … }
#define ASSERT_TYPE_IS(a, b) …
class Extractor { … };
}
namespace internal {
bool Extract(base::span<const void*> outputs,
base::span<const StepOrByte<void>> steps,
const cbor::Value::MapValue& map) { … }
}
bool ForEachPublicKeyEntry(
const cbor::Value::ArrayValue& array,
const cbor::Value& key,
base::RepeatingCallback<bool(const cbor::Value&)> callback) { … }
}
}