12 const std::vector<uint8_t>
plaintext(16, 0);
32 const std::vector<uint8_t>
plaintext(16, 0);
53 const std::vector<uint8_t>
plaintext(128, 0);
77 const std::vector<uint8_t>
plaintext(128, 0);
101 const std::vector<uint8_t>
plaintext(128, 0);
113 const std::vector<uint8_t>
cyphertext(128, 0);
125 const std::vector<uint8_t>
plaintext(128, 0);
137 const std::vector<uint8_t>
cyphertext(128, 0);
static const int AES128_KEYSIZE
static const int AES256_KEYSIZE
static const int AES_BLOCKSIZE
int Decrypt(const uint8_t *data, int size, uint8_t *out) const
int Encrypt(const uint8_t *data, int size, uint8_t *out) const
A decryption class for AES-128.
void Decrypt(uint8_t plaintext[16], const uint8_t ciphertext[16]) const
An encryption class for AES-128.
void Encrypt(uint8_t ciphertext[16], const uint8_t plaintext[16]) const
int Decrypt(const uint8_t *data, int size, uint8_t *out) const
int Encrypt(const uint8_t *data, int size, uint8_t *out) const
A decryption class for AES-256.
void Decrypt(uint8_t plaintext[16], const uint8_t ciphertext[16]) const
An encryption class for AES-256.
void Encrypt(uint8_t ciphertext[16], const uint8_t plaintext[16]) const
Main entry point to nanobench's benchmarking facility.
static void AES128CBC_EncryptWithPad(benchmark::Bench &bench)
static void AES256_Encrypt(benchmark::Bench &bench)
static void AES128CBC_DecryptWithPad(benchmark::Bench &bench)
static void AES128CBC_DecryptNoPad(benchmark::Bench &bench)
static void AES256CBC_DecryptNoPad(benchmark::Bench &bench)
static void AES256CBC_EncryptNoPad(benchmark::Bench &bench)
static void AES128_Decrypt(benchmark::Bench &bench)
static void AES256CBC_EncryptWithPad(benchmark::Bench &bench)
static void AES256_Decrypt(benchmark::Bench &bench)
static void AES128_Encrypt(benchmark::Bench &bench)
static void AES256CBC_DecryptWithPad(benchmark::Bench &bench)
static void AES128CBC_EncryptNoPad(benchmark::Bench &bench)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...