Bitcoin ABC  0.22.13
P2P Digital Currency
Macros | Functions
crypto_aes.cpp File Reference
#include <bench/bench.h>
#include <crypto/aes.h>
#include <util/time.h>
#include <validation.h>
Include dependency graph for crypto_aes.cpp:

Go to the source code of this file.

Macros

#define BENCH_AES128_ITERATION   800000
 
#define BENCH_AES128CBC_ITERATION   200000
 
#define BENCH_AES256_ITERATION   640000
 
#define BENCH_AES256CBC_ITERATION   160000
 

Functions

static void AES128_Encrypt (benchmark::State &state)
 
static void AES128_Decrypt (benchmark::State &state)
 
static void AES256_Encrypt (benchmark::State &state)
 
static void AES256_Decrypt (benchmark::State &state)
 
static void AES128CBC_EncryptNoPad (benchmark::State &state)
 
static void AES128CBC_DecryptNoPad (benchmark::State &state)
 
static void AES128CBC_EncryptWithPad (benchmark::State &state)
 
static void AES128CBC_DecryptWithPad (benchmark::State &state)
 
static void AES256CBC_EncryptNoPad (benchmark::State &state)
 
static void AES256CBC_DecryptNoPad (benchmark::State &state)
 
static void AES256CBC_EncryptWithPad (benchmark::State &state)
 
static void AES256CBC_DecryptWithPad (benchmark::State &state)
 
 BENCHMARK (AES128_Encrypt, BENCH_AES128_ITERATION)
 
 BENCHMARK (AES128_Decrypt, BENCH_AES128_ITERATION)
 
 BENCHMARK (AES256_Encrypt, BENCH_AES256_ITERATION)
 
 BENCHMARK (AES256_Decrypt, BENCH_AES256_ITERATION)
 
 BENCHMARK (AES128CBC_EncryptNoPad, BENCH_AES128CBC_ITERATION)
 
 BENCHMARK (AES128CBC_DecryptNoPad, BENCH_AES128CBC_ITERATION)
 
 BENCHMARK (AES128CBC_EncryptWithPad, BENCH_AES128CBC_ITERATION)
 
 BENCHMARK (AES128CBC_DecryptWithPad, BENCH_AES128CBC_ITERATION)
 
 BENCHMARK (AES256CBC_EncryptNoPad, BENCH_AES256CBC_ITERATION)
 
 BENCHMARK (AES256CBC_DecryptNoPad, BENCH_AES256CBC_ITERATION)
 
 BENCHMARK (AES256CBC_EncryptWithPad, BENCH_AES256CBC_ITERATION)
 
 BENCHMARK (AES256CBC_DecryptWithPad, BENCH_AES256CBC_ITERATION)
 

Macro Definition Documentation

◆ BENCH_AES128_ITERATION

#define BENCH_AES128_ITERATION   800000

Definition at line 10 of file crypto_aes.cpp.

◆ BENCH_AES128CBC_ITERATION

#define BENCH_AES128CBC_ITERATION   200000

Definition at line 11 of file crypto_aes.cpp.

◆ BENCH_AES256_ITERATION

#define BENCH_AES256_ITERATION   640000

Definition at line 12 of file crypto_aes.cpp.

◆ BENCH_AES256CBC_ITERATION

#define BENCH_AES256CBC_ITERATION   160000

Definition at line 13 of file crypto_aes.cpp.

Function Documentation

◆ AES128_Decrypt()

static void AES128_Decrypt ( benchmark::State state)
static

Definition at line 25 of file crypto_aes.cpp.

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

◆ AES128_Encrypt()

static void AES128_Encrypt ( benchmark::State state)
static

Definition at line 15 of file crypto_aes.cpp.

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

◆ AES128CBC_DecryptNoPad()

static void AES128CBC_DecryptNoPad ( benchmark::State state)
static

Definition at line 67 of file crypto_aes.cpp.

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

◆ AES128CBC_DecryptWithPad()

static void AES128CBC_DecryptWithPad ( benchmark::State state)
static

Definition at line 91 of file crypto_aes.cpp.

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

◆ AES128CBC_EncryptNoPad()

static void AES128CBC_EncryptNoPad ( benchmark::State state)
static

Definition at line 55 of file crypto_aes.cpp.

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

◆ AES128CBC_EncryptWithPad()

static void AES128CBC_EncryptWithPad ( benchmark::State state)
static

Definition at line 79 of file crypto_aes.cpp.

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

◆ AES256_Decrypt()

static void AES256_Decrypt ( benchmark::State state)
static

Definition at line 45 of file crypto_aes.cpp.

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

◆ AES256_Encrypt()

static void AES256_Encrypt ( benchmark::State state)
static

Definition at line 35 of file crypto_aes.cpp.

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

◆ AES256CBC_DecryptNoPad()

static void AES256CBC_DecryptNoPad ( benchmark::State state)
static

Definition at line 115 of file crypto_aes.cpp.

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

◆ AES256CBC_DecryptWithPad()

static void AES256CBC_DecryptWithPad ( benchmark::State state)
static

Definition at line 139 of file crypto_aes.cpp.

Here is the call graph for this function:

◆ AES256CBC_EncryptNoPad()

static void AES256CBC_EncryptNoPad ( benchmark::State state)
static

Definition at line 103 of file crypto_aes.cpp.

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

◆ AES256CBC_EncryptWithPad()

static void AES256CBC_EncryptWithPad ( benchmark::State state)
static

Definition at line 127 of file crypto_aes.cpp.

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

◆ BENCHMARK() [1/12]

BENCHMARK ( AES128_Encrypt  ,
BENCH_AES128_ITERATION   
)
Here is the caller graph for this function:

◆ BENCHMARK() [2/12]

BENCHMARK ( AES128_Decrypt  ,
BENCH_AES128_ITERATION   
)

◆ BENCHMARK() [3/12]

BENCHMARK ( AES256_Encrypt  ,
BENCH_AES256_ITERATION   
)

◆ BENCHMARK() [4/12]

BENCHMARK ( AES256_Decrypt  ,
BENCH_AES256_ITERATION   
)

◆ BENCHMARK() [5/12]

◆ BENCHMARK() [6/12]

◆ BENCHMARK() [7/12]

◆ BENCHMARK() [8/12]

◆ BENCHMARK() [9/12]

◆ BENCHMARK() [10/12]

◆ BENCHMARK() [11/12]

◆ BENCHMARK() [12/12]