#include <iostream>
#include <bench/bench.h>
#include <crypto/chacha_poly_aead.h>
#include <crypto/poly1305.h>
#include <hash.h>
#include <cassert>
#include <limits>
Go to the source code of this file.
◆ BENCHMARK() [1/9]
◆ BENCHMARK() [2/9]
◆ BENCHMARK() [3/9]
◆ BENCHMARK() [4/9]
◆ BENCHMARK() [5/9]
◆ BENCHMARK() [6/9]
◆ BENCHMARK() [7/9]
◆ BENCHMARK() [8/9]
◆ BENCHMARK() [9/9]
◆ CHACHA20_POLY1305_AEAD()
static void CHACHA20_POLY1305_AEAD |
( |
benchmark::Bench & |
bench, |
|
|
size_t |
buffersize, |
|
|
bool |
include_decryption |
|
) |
| |
|
static |
◆ CHACHA20_POLY1305_AEAD_1MB_ENCRYPT_DECRYPT()
static void CHACHA20_POLY1305_AEAD_1MB_ENCRYPT_DECRYPT |
( |
benchmark::Bench & |
bench | ) |
|
|
static |
◆ CHACHA20_POLY1305_AEAD_1MB_ONLY_ENCRYPT()
◆ CHACHA20_POLY1305_AEAD_256BYTES_ENCRYPT_DECRYPT()
static void CHACHA20_POLY1305_AEAD_256BYTES_ENCRYPT_DECRYPT |
( |
benchmark::Bench & |
bench | ) |
|
|
static |
◆ CHACHA20_POLY1305_AEAD_256BYTES_ONLY_ENCRYPT()
static void CHACHA20_POLY1305_AEAD_256BYTES_ONLY_ENCRYPT |
( |
benchmark::Bench & |
bench | ) |
|
|
static |
◆ CHACHA20_POLY1305_AEAD_64BYTES_ENCRYPT_DECRYPT()
static void CHACHA20_POLY1305_AEAD_64BYTES_ENCRYPT_DECRYPT |
( |
benchmark::Bench & |
bench | ) |
|
|
static |
◆ CHACHA20_POLY1305_AEAD_64BYTES_ONLY_ENCRYPT()
static void CHACHA20_POLY1305_AEAD_64BYTES_ONLY_ENCRYPT |
( |
benchmark::Bench & |
bench | ) |
|
|
static |
◆ HASH()
◆ HASH_1MB()
◆ HASH_256BYTES()
◆ HASH_64BYTES()
◆ aead
◆ BUFFER_SIZE_LARGE
constexpr uint64_t BUFFER_SIZE_LARGE = 1024 * 1024 |
|
staticconstexpr |
◆ BUFFER_SIZE_SMALL
constexpr uint64_t BUFFER_SIZE_SMALL = 256 |
|
staticconstexpr |
◆ BUFFER_SIZE_TINY
constexpr uint64_t BUFFER_SIZE_TINY = 64 |
|
staticconstexpr |
◆ k1
const uint8_t k1[32] = {0} |
|
static |
◆ k2
const uint8_t k2[32] = {0} |
|
static |