Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cRandomMixerBase Class Reference

#include <cRandomDSA.h>

Inheritance diagram for GrayLib::cRandomMixerBase:
Gray::IRandomNoise GrayLib::cRandomDSA GraySSL::cRandomTest

Public Member Functions

 cRandomMixerBase () noexcept
 
virtual ~cRandomMixerBase ()
 
void put_PredictionResistance (bool bPredictionResistance) noexcept
 
- Public Member Functions inherited from Gray::IRandomNoise
virtual HRESULT GetNoise (void *pData, size_t iSize)=0
 fill array with random bytes. return # bytes filled. More...
 

Public Attributes

int m_nReSeedCounter
 reseed counter More...
 
bool m_bPredictionResistance
 enable prediction resistance (Automatic reseed before every random generation) More...
 
size_t m_nEntropyLen
 entropy bytes grabbed on each (re)seed More...
 
int m_nReSeedInterval
 reseed interval More...
 
IRandomNoisem_pRandom
 context for the entropy function More...
 

Constructor & Destructor Documentation

◆ cRandomMixerBase()

GrayLib::cRandomMixerBase::cRandomMixerBase ( )
inlinenoexcept

◆ ~cRandomMixerBase()

virtual GrayLib::cRandomMixerBase::~cRandomMixerBase ( )
inlinevirtual

Member Function Documentation

◆ put_PredictionResistance()

void GrayLib::cRandomMixerBase::put_PredictionResistance ( bool  bPredictionResistance)
inlinenoexcept

Enable / disable prediction resistance (Default: Off) For testing. If enabled, entropy is used for m_nEntropyLen before each call! Only use this if you have ample supply of good entropy!

Member Data Documentation

◆ m_bPredictionResistance

bool GrayLib::cRandomMixerBase::m_bPredictionResistance

enable prediction resistance (Automatic reseed before every random generation)

◆ m_nEntropyLen

size_t GrayLib::cRandomMixerBase::m_nEntropyLen

entropy bytes grabbed on each (re)seed

◆ m_nReSeedCounter

int GrayLib::cRandomMixerBase::m_nReSeedCounter

reseed counter

◆ m_nReSeedInterval

int GrayLib::cRandomMixerBase::m_nReSeedInterval

reseed interval

◆ m_pRandom

IRandomNoise* GrayLib::cRandomMixerBase::m_pRandom

context for the entropy function


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