Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
chacha20.cpp File Reference
#include <bench/bench.h>
#include <crypto/chacha20.h>
#include <crypto/chacha20poly1305.h>
#include <span.h>
#include <cstddef>
#include <cstdint>
#include <vector>
Include dependency graph for chacha20.cpp:

Go to the source code of this file.

Functions

static void CHACHA20 (benchmark::Bench &bench, size_t buffersize)
static void FSCHACHA20POLY1305 (benchmark::Bench &bench, size_t buffersize)
static void CHACHA20_64BYTES (benchmark::Bench &bench)
static void CHACHA20_256BYTES (benchmark::Bench &bench)
static void CHACHA20_1MB (benchmark::Bench &bench)
static void FSCHACHA20POLY1305_64BYTES (benchmark::Bench &bench)
static void FSCHACHA20POLY1305_256BYTES (benchmark::Bench &bench)
static void FSCHACHA20POLY1305_1MB (benchmark::Bench &bench)
 BENCHMARK (CHACHA20_64BYTES)
 BENCHMARK (CHACHA20_256BYTES)
 BENCHMARK (CHACHA20_1MB)
 BENCHMARK (FSCHACHA20POLY1305_64BYTES)
 BENCHMARK (FSCHACHA20POLY1305_256BYTES)
 BENCHMARK (FSCHACHA20POLY1305_1MB)

Variables

static const uint64_t BUFFER_SIZE_TINY = 64
static const uint64_t BUFFER_SIZE_SMALL = 256
static const uint64_t BUFFER_SIZE_LARGE = 1024*1024

Function Documentation

◆ BENCHMARK() [1/6]

BENCHMARK ( CHACHA20_1MB )
Here is the call graph for this function:

◆ BENCHMARK() [2/6]

BENCHMARK ( CHACHA20_256BYTES )
Here is the call graph for this function:

◆ BENCHMARK() [3/6]

BENCHMARK ( CHACHA20_64BYTES )
Here is the call graph for this function:

◆ BENCHMARK() [4/6]

BENCHMARK ( FSCHACHA20POLY1305_1MB )
Here is the call graph for this function:

◆ BENCHMARK() [5/6]

Here is the call graph for this function:

◆ BENCHMARK() [6/6]

Here is the call graph for this function:

◆ CHACHA20()

void CHACHA20 ( benchmark::Bench & bench,
size_t buffersize )
static

Definition at line 20 of file chacha20.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CHACHA20_1MB()

void CHACHA20_1MB ( benchmark::Bench & bench)
static

Definition at line 54 of file chacha20.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CHACHA20_256BYTES()

void CHACHA20_256BYTES ( benchmark::Bench & bench)
static

Definition at line 49 of file chacha20.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CHACHA20_64BYTES()

void CHACHA20_64BYTES ( benchmark::Bench & bench)
static

Definition at line 44 of file chacha20.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FSCHACHA20POLY1305()

void FSCHACHA20POLY1305 ( benchmark::Bench & bench,
size_t buffersize )
static

Definition at line 32 of file chacha20.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FSCHACHA20POLY1305_1MB()

void FSCHACHA20POLY1305_1MB ( benchmark::Bench & bench)
static

Definition at line 69 of file chacha20.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FSCHACHA20POLY1305_256BYTES()

void FSCHACHA20POLY1305_256BYTES ( benchmark::Bench & bench)
static

Definition at line 64 of file chacha20.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FSCHACHA20POLY1305_64BYTES()

void FSCHACHA20POLY1305_64BYTES ( benchmark::Bench & bench)
static

Definition at line 59 of file chacha20.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ BUFFER_SIZE_LARGE

const uint64_t BUFFER_SIZE_LARGE = 1024*1024
static

Definition at line 18 of file chacha20.cpp.

◆ BUFFER_SIZE_SMALL

const uint64_t BUFFER_SIZE_SMALL = 256
static

Definition at line 17 of file chacha20.cpp.

◆ BUFFER_SIZE_TINY

const uint64_t BUFFER_SIZE_TINY = 64
static

Definition at line 16 of file chacha20.cpp.