The namespace containing AES encryption/decryption functions.
More...
|
| namespace | gcm |
| | Functions related to AES-GCM.
|
| |
| namespace | gf |
| | Helper utilities for working within a Galois Field 2**8.
|
| |
| namespace | key |
| | Manage the key.
|
| |
|
| class | state |
| | An arbitrary collection of state arrays. More...
|
| |
| class | state_array |
| | The state array is a 4x4 byte matrix to which AES operations are performed; also called a block. More...
|
| |
|
| std::string | Cipher (const std::string &in, const std::array< uint64_t, 4 > &k, const uint64_t &Nr) |
| | Encrypt a message with AES.
|
| |
| std::string | InvCipher (const std::string &in, const std::array< uint64_t, 4 > &k, const uint64_t &Nr) |
| | Decrypt a message with AES.
|
| |
| std::string | Ctr (const std::string &in, const std::array< uint64_t, 4 > &k, const uint64_t Nr, uint64_t nonce) |
| | An implementation of AES in CTR mode.
|
| |
The namespace containing AES encryption/decryption functions.
◆ Cipher()
| std::string aes::Cipher |
( |
const std::string & | in, |
|
|
const std::array< uint64_t, 4 > & | k, |
|
|
const uint64_t & | Nr ) |
Encrypt a message with AES.
- Parameters
-
| in | The input string. |
| k | The key |
| Nr | The number of rounds we should run (Determine how much of the key is used). |
- Warning
- This function, on its own is no different from ECB!
◆ Ctr()
| std::string aes::Ctr |
( |
const std::string & | in, |
|
|
const std::array< uint64_t, 4 > & | k, |
|
|
const uint64_t | Nr, |
|
|
uint64_t | nonce ) |
An implementation of AES in CTR mode.
- Parameters
-
| in | The input string. |
| k | The key. |
| Nr | The number of rounds to perform. |
| nonce | The nonce value to use. |
◆ InvCipher()
| std::string aes::InvCipher |
( |
const std::string & | in, |
|
|
const std::array< uint64_t, 4 > & | k, |
|
|
const uint64_t & | Nr ) |
Decrypt a message with AES.
- Parameters
-
| in | The input string. |
| k | The key |
| Nr | The number of rounds to run. |
- Warning
- This function, on its own is no different from ECB!