MCPcopy Create free account
hub / github.com/ElementsProject/elements / POLY1305

Function POLY1305

src/bench/poly1305.cpp:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12static constexpr uint64_t BUFFER_SIZE_LARGE = 1024*1024;
13
14static void POLY1305(benchmark::Bench& bench, size_t buffersize)
15{
16 std::vector<unsigned char> tag(POLY1305_TAGLEN, 0);
17 std::vector<unsigned char> key(POLY1305_KEYLEN, 0);
18 std::vector<unsigned char> in(buffersize, 0);
19 bench.batch(in.size()).unit("byte").run([&] {
20 poly1305_auth(tag.data(), in.data(), in.size(), key.data());
21 });
22}
23
24static void POLY1305_64BYTES(benchmark::Bench& bench)
25{

Callers 3

POLY1305_64BYTESFunction · 0.85
POLY1305_256BYTESFunction · 0.85
POLY1305_1MBFunction · 0.85

Calls 5

poly1305_authFunction · 0.85
runMethod · 0.45
batchMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected