18 std::vector<uint8_t> in(buffersize, 0);
20 [&] {
poly1305_auth(tag.data(), in.data(), in.size(), key.data()); });
static constexpr uint64_t BUFFER_SIZE_LARGE
static constexpr uint64_t BUFFER_SIZE_TINY
BENCHMARK(POLY1305_64BYTES)
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)
Main entry point to nanobench's benchmarking facility.
ANKERL_NANOBENCH(NODISCARD) std Bench & batch(T b) noexcept
Sets the batch size.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
Bench & unit(char const *unit)
Sets the operation unit.
void poly1305_auth(uint8_t out[POLY1305_TAGLEN], const uint8_t *m, size_t inlen, const uint8_t key[POLY1305_KEYLEN])