|
AES-DH Implementation
|
Functions related to AES-GCM. More...
Functions | |
| void | increment (state_array &X) |
| The Nonce Increment Function. | |
| state_array | mult (const state_array &X, const state_array &Y) |
| Perform a multiplication on two blocks of data. | |
| state_array | GHASH (const state &X, const state_array &H) |
| Calculate the GHASH for a state. | |
| state | GCTR (state s, state_array ICB) |
| Apply AES-CTR to a message. | |
| std::string | Enc (const std::string &in, const std::array< uint64_t, 4 > &k, const uint64_t Nr, uint64_t nonce) |
| std::string | Dec (const std::string &in, const std::array< uint64_t, 4 > &k, const uint64_t Nr, uint64_t nonce) |
| Decrypt a message with AES-GCM. | |
Functions related to AES-GCM.
| std::string aes::gcm::Dec | ( | const std::string & | in, |
| const std::array< uint64_t, 4 > & | k, | ||
| const uint64_t | Nr, | ||
| uint64_t | nonce ) |
Decrypt a message with AES-GCM.
| in | The ciphertext. |
| k | The key. |
| Nr | The number of rounds to perform. |
| nonce | The nonce value/IV. |
| std::runtime_error | if the message has been modified or an incorrect key was supplied. |
| state aes::gcm::GCTR | ( | state | s, |
| state_array | ICB ) |
Apply AES-CTR to a message.
| s | The state to operate on. |
| ICB | The initial vector, or nonce. |
| state_array aes::gcm::GHASH | ( | const state & | X, |
| const state_array & | H ) |
Calculate the GHASH for a state.
| X | The state |
| H | The hash subkey. |
| void aes::gcm::increment | ( | state_array & | X | ) |
The Nonce Increment Function.
| the | state array used as the counter. |
| state_array aes::gcm::mult | ( | const state_array & | X, |
| const state_array & | Y ) |
Perform a multiplication on two blocks of data.
| X | The first block. |
| Y | The second block. |