Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

NonblockingRng Class Reference

encapsulate CryptoAPI's CryptGenRandom or /dev/urandom. More...

#include <osrng.h>

Inheritance diagram for NonblockingRng:

RandomNumberGenerator List of all members.

Public Methods

 NonblockingRng ()
 ~NonblockingRng ()
byte GenerateByte ()
 generate new random byte and return it. More...

void GenerateBlock (byte *output,unsigned int size)
 generate random array of bytes. More...


Protected Attributes

unsigned long m_hProvider

Detailed Description

encapsulate CryptoAPI's CryptGenRandom or /dev/urandom.

Definition at line 24 of file osrng.h.


Constructor & Destructor Documentation

NonblockingRng::NonblockingRng ( )
 

Definition at line 23 of file osrng.cpp.

NonblockingRng::~NonblockingRng ( )
 

Definition at line 35 of file osrng.cpp.


Member Function Documentation

void NonblockingRng::GenerateBlock ( byte * output,
unsigned int size ) [virtual]
 

generate random array of bytes.

Reimplemented from RandomNumberGenerator.

Definition at line 51 of file osrng.cpp.

Referenced by GenerateByte().

byte NonblockingRng::GenerateByte ( ) [virtual]
 

generate new random byte and return it.

Reimplemented from RandomNumberGenerator.

Definition at line 44 of file osrng.cpp.


Member Data Documentation

unsigned long NonblockingRng::m_hProvider [protected]
 

Definition at line 34 of file osrng.h.


The documentation for this class was generated from the following files:
Generated at Mon Jan 15 01:16:55 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000