An AES initialization vector.
More...
#include <aes_initialization_vector.hpp>
|
static const size_t | DEFAULT_SIZE = 16 |
| The AES initialization vector size.
|
|
An AES initialization vector.
AESInitializationVector represents an AES initialization vector (IV). Every AESInitializationVector is 16 bytes long.
It is meant to be used with an instance of AESCipher.
◆ AESInitializationVector() [1/2]
logicalaccess::openssl::AESInitializationVector::AESInitializationVector |
( |
bool |
random | ) |
|
|
explicitprotected |
◆ AESInitializationVector() [2/2]
logicalaccess::openssl::AESInitializationVector::AESInitializationVector |
( |
const ByteVector & |
data | ) |
|
|
explicitprotected |
Create an AESInitializationVector from existing data.
- Parameters
-
- Warning
- If data is not 16 bytes long, the behavior is undefined.
◆ createFromData()
Create an IV from data.
- Parameters
-
data | The data. Must be 16 exactly bytes long. |
- Returns
- IV from the data.
- Warning
- If data is not exactly 16 bytes long, the behavior is undefined.
◆ createNull()
◆ createRandom()
◆ DEFAULT_SIZE
const size_t logicalaccess::openssl::AESInitializationVector::DEFAULT_SIZE = 16 |
|
staticprivate |
The AES initialization vector size.
The documentation for this class was generated from the following files: