AES-CMAC Implementation This class provides methods to calculate AES-CMAC and perform AES encryption.
More...
#include <AES-CMAC.hpp>
|
void | test_encrypt_block (const std::array< uint8_t, 16 > &input, const std::array< uint8_t, 16 > &key, std::array< uint8_t, 16 > &output) |
|
|
static std::array< uint8_t, 16 > | calculate (const std::vector< uint8_t > &message, const std::array< uint8_t, 16 > &key) |
|
static void | aes_encrypt (uint8_t *input, const uint8_t *key, uint8_t *output) |
|
|
static void | generate_subkey (const std::array< uint8_t, 16 > &key, std::array< uint8_t, 16 > &k1, std::array< uint8_t, 16 > &k2) |
|
static void | xor_block (uint8_t *output, const uint8_t *input, size_t len) |
|
static void | left_shift (uint8_t *input, uint8_t *output) |
|
AES-CMAC Implementation This class provides methods to calculate AES-CMAC and perform AES encryption.
◆ aes_encrypt()
void AESCMAC::aes_encrypt |
( |
uint8_t * |
input, |
|
|
const uint8_t * |
key, |
|
|
uint8_t * |
output |
|
) |
| |
|
static |
◆ calculate()
std::array< uint8_t, 16 > AESCMAC::calculate |
( |
const std::vector< uint8_t > & |
message, |
|
|
const std::array< uint8_t, 16 > & |
key |
|
) |
| |
|
static |
◆ generate_subkey()
void AESCMAC::generate_subkey |
( |
const std::array< uint8_t, 16 > & |
key, |
|
|
std::array< uint8_t, 16 > & |
k1, |
|
|
std::array< uint8_t, 16 > & |
k2 |
|
) |
| |
|
staticprivate |
◆ left_shift()
void AESCMAC::left_shift |
( |
uint8_t * |
input, |
|
|
uint8_t * |
output |
|
) |
| |
|
staticprivate |
◆ test_encrypt_block()
void AESCMAC::test_encrypt_block |
( |
const std::array< uint8_t, 16 > & |
input, |
|
|
const std::array< uint8_t, 16 > & |
key, |
|
|
std::array< uint8_t, 16 > & |
output |
|
) |
| |
◆ xor_block()
void AESCMAC::xor_block |
( |
uint8_t * |
output, |
|
|
const uint8_t * |
input, |
|
|
size_t |
len |
|
) |
| |
|
staticprivate |
The documentation for this class was generated from the following files: