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

#include <cRandomTestHash.h>

Inheritance diagram for GraySSL::cRandomTestHash:
GrayLib::cRandomCombo Gray::IRandomNoise

Public Member Functions

 cRandomTestHash ()
 
 ~cRandomTestHash ()
 
virtual HRESULT GetNoise (void *pData, size_t nSize) override
 fill array with random bytes. return # bytes filled. More...
 
HRESULT UnitTestData (const BYTE *data, size_t len)
 
 UNITTEST_FRIEND (cRandomTestHash)
 
- Public Member Functions inherited from GrayLib::cRandomCombo
 cRandomCombo () noexcept
 
virtual ~cRandomCombo ()
 
HRESULT AddRandomSource (IRandomNoise *pRandom, size_t nSizeMax)
 
 UNITTEST2_PREDEF (cRandomCombo)
 

Public Attributes

cHashSHA512Builder m_hasher
 
- Public Attributes inherited from GrayLib::cRandomCombo
SOURCE_t m_nSourceQty
 
cRandomComboSource m_source [k_nMaxSources]
 

Additional Inherited Members

- Public Types inherited from GrayLib::cRandomCombo
typedef BYTE SOURCE_t
 
- Static Public Attributes inherited from GrayLib::cRandomCombo
static const SOURCE_t k_nMaxSources = 8
 

Detailed Description

Combine low level random generators. For testing.

Constructor & Destructor Documentation

◆ cRandomTestHash()

GraySSL::cRandomTestHash::cRandomTestHash ( )

◆ ~cRandomTestHash()

GraySSL::cRandomTestHash::~cRandomTestHash ( )

Member Function Documentation

◆ GetNoise()

HRESULT GraySSL::cRandomTestHash::GetNoise ( void *  pData,
size_t  iSize 
)
overridevirtual

fill array with random bytes. return # bytes filled.

< Maximum amount to loop before error

Implements Gray::IRandomNoise.

◆ UNITTEST_FRIEND()

GraySSL::cRandomTestHash::UNITTEST_FRIEND ( cRandomTestHash  )

◆ UnitTestData()

HRESULT GraySSL::cRandomTestHash::UnitTestData ( const BYTE *  data,
size_t  len 
)

Add data to the accumulator manually for testing.

Member Data Documentation

◆ m_hasher

cHashSHA512Builder GraySSL::cRandomTestHash::m_hasher

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