LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
initialization_vector.hpp
Go to the documentation of this file.
1
8#ifndef INITIALIZATION_VECTOR_HPP
9#define INITIALIZATION_VECTOR_HPP
10
11#include <vector>
12#include <iostream>
14#include "logicalaccess/plugins/crypto/lla_crypto_api.hpp"
15
16namespace logicalaccess
17{
18namespace openssl
19{
25class LLA_CRYPTO_API InitializationVector
26{
27 public:
33 InitializationVector(size_t size, bool random);
34
39 explicit InitializationVector(const ByteVector &data);
40
45 const ByteVector &data() const
46 {
47 return d_data;
48 }
49
50 protected:
51
55 void zero();
56
60 void randomize();
61
62 private:
67};
68}
69}
70
71#endif /* INITIALIZATION_VECTOR_HPP */
An initialisation vector.
Definition: initialization_vector.hpp:26
const ByteVector & data() const
Get the IV data.
Definition: initialization_vector.hpp:45
ByteVector d_data
The IV data.
Definition: initialization_vector.hpp:66
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9