23 std::vector<std::byte> in(buffersize, {});
static constexpr uint64_t BUFFER_SIZE_LARGE
static constexpr uint64_t BUFFER_SIZE_TINY
static constexpr uint64_t BUFFER_SIZE_SMALL
static void POLY1305_256BYTES(benchmark::Bench &bench)
static void POLY1305(benchmark::Bench &bench, size_t buffersize)
static void POLY1305_64BYTES(benchmark::Bench &bench)
static void POLY1305_1MB(benchmark::Bench &bench)
BENCHMARK(POLY1305_64BYTES, benchmark::PriorityLevel::HIGH)
C++ wrapper with std::byte Span interface around poly1305_donna code.
static constexpr unsigned KEYLEN
Length of the keys expected by the constructor.
Poly1305 & Update(Span< const std::byte > msg) noexcept
Process message bytes.
static constexpr unsigned TAGLEN
Length of the output produced by Finalize().
Main entry point to nanobench's benchmarking facility.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
Bench & batch(T b) noexcept
Sets the batch size.
Bench & unit(char const *unit)
Sets the operation unit.