RNG support.
More...
#include <crypto_rng.h>
|
| RNG () |
| Constructor from a Random Number Generator. More...
|
|
virtual | ~RNG () |
| Destructor. More...
|
|
virtual std::vector< uint8_t > | random (size_t len)=0 |
| Generate random value. More...
|
|
RNG support.
This class is used to get the RNG. The global instance can be get with CryptoLink::getRNG()
Definition at line 22 of file crypto_rng.h.
isc::cryptolink::RNG::RNG |
( |
| ) |
|
Constructor from a Random Number Generator.
- Exceptions
-
LibraryError | if there was any unexpected exception in the underlying library |
Definition at line 19 of file crypto_rng.cc.
isc::cryptolink::RNG::~RNG |
( |
| ) |
|
|
virtual |
virtual std::vector<uint8_t> isc::cryptolink::RNG::random |
( |
size_t |
len | ) |
|
|
pure virtual |
Generate random value.
The result will be returned as a std::vector<uint8_t>
- Exceptions
-
LibraryError | if there was any unexpected exception in the underlying library |
- Parameters
-
len | The number of bytes from the result to generate. |
- Returns
- a vector containing random value.
The documentation for this class was generated from the following files: