Kea  1.9.9-git
isc::cryptolink::RNG Class Referenceabstract

RNG support. More...

#include <crypto_rng.h>

+ Inheritance diagram for isc::cryptolink::RNG:

Public Member Functions

 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...
 

Friends

RNGPtrCryptoLink::getRNG ()
 

Detailed Description

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.

Constructor & Destructor Documentation

isc::cryptolink::RNG::RNG ( )

Constructor from a Random Number Generator.

Exceptions
LibraryErrorif there was any unexpected exception in the underlying library

Definition at line 19 of file crypto_rng.cc.

isc::cryptolink::RNG::~RNG ( )
virtual

Destructor.

Definition at line 22 of file crypto_rng.cc.

Member Function Documentation

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
LibraryErrorif there was any unexpected exception in the underlying library
Parameters
lenThe number of bytes from the result to generate.
Returns
a vector containing random value.

Friends And Related Function Documentation


The documentation for this class was generated from the following files: