Bitcoin Core  27.99.0
P2P Digital Currency
Functions | Variables
chacha20.cpp File Reference
#include <bench/bench.h>
#include <crypto/chacha20.h>
#include <crypto/chacha20poly1305.h>
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::PriorityLevel::HIGH)
 
 BENCHMARK (CHACHA20_256BYTES, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (CHACHA20_1MB, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (FSCHACHA20POLY1305_64BYTES, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (FSCHACHA20POLY1305_256BYTES, benchmark::PriorityLevel::HIGH)
 
 BENCHMARK (FSCHACHA20POLY1305_1MB, benchmark::PriorityLevel::HIGH)
 

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() [2/6]

◆ BENCHMARK() [3/6]

◆ BENCHMARK() [4/6]

◆ BENCHMARK() [5/6]

◆ BENCHMARK() [6/6]

◆ CHACHA20()

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

Definition at line 15 of file chacha20.cpp.

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

◆ CHACHA20_1MB()

static void CHACHA20_1MB ( benchmark::Bench bench)
static

Definition at line 49 of file chacha20.cpp.

Here is the call graph for this function:

◆ CHACHA20_256BYTES()

static void CHACHA20_256BYTES ( benchmark::Bench bench)
static

Definition at line 44 of file chacha20.cpp.

Here is the call graph for this function:

◆ CHACHA20_64BYTES()

static void CHACHA20_64BYTES ( benchmark::Bench bench)
static

Definition at line 39 of file chacha20.cpp.

Here is the call graph for this function:

◆ FSCHACHA20POLY1305()

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

Definition at line 27 of file chacha20.cpp.

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

◆ FSCHACHA20POLY1305_1MB()

static void FSCHACHA20POLY1305_1MB ( benchmark::Bench bench)
static

Definition at line 64 of file chacha20.cpp.

Here is the call graph for this function:

◆ FSCHACHA20POLY1305_256BYTES()

static void FSCHACHA20POLY1305_256BYTES ( benchmark::Bench bench)
static

Definition at line 59 of file chacha20.cpp.

Here is the call graph for this function:

◆ FSCHACHA20POLY1305_64BYTES()

static void FSCHACHA20POLY1305_64BYTES ( benchmark::Bench bench)
static

Definition at line 54 of file chacha20.cpp.

Here is the call graph for this function:

Variable Documentation

◆ BUFFER_SIZE_LARGE

const uint64_t BUFFER_SIZE_LARGE = 1024*1024
static

Definition at line 13 of file chacha20.cpp.

◆ BUFFER_SIZE_SMALL

const uint64_t BUFFER_SIZE_SMALL = 256
static

Definition at line 12 of file chacha20.cpp.

◆ BUFFER_SIZE_TINY

const uint64_t BUFFER_SIZE_TINY = 64
static

Definition at line 11 of file chacha20.cpp.