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