clarify comments
parent
32b47f1a66
commit
f0b6d88f11
6
osrng.h
6
osrng.h
|
|
@ -63,7 +63,7 @@ protected:
|
||||||
|
|
||||||
#ifdef BLOCKING_RNG_AVAILABLE
|
#ifdef BLOCKING_RNG_AVAILABLE
|
||||||
|
|
||||||
//! encapsulate /dev/random
|
//! encapsulate /dev/random, or /dev/srandom on OpenBSD
|
||||||
class CRYPTOPP_DLL BlockingRng : public RandomNumberGenerator
|
class CRYPTOPP_DLL BlockingRng : public RandomNumberGenerator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
@ -85,7 +85,7 @@ CRYPTOPP_DLL void CRYPTOPP_API OS_GenerateRandomBlock(bool blocking, byte *outpu
|
||||||
class CRYPTOPP_DLL AutoSeededRandomPool : public RandomPool
|
class CRYPTOPP_DLL AutoSeededRandomPool : public RandomPool
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//! blocking will be ignored if the prefered RNG isn't available
|
//! use blocking to choose seeding with BlockingRng or NonblockingRng. the parameter is ignored if only one of these is available
|
||||||
explicit AutoSeededRandomPool(bool blocking = false, unsigned int seedSize = 32)
|
explicit AutoSeededRandomPool(bool blocking = false, unsigned int seedSize = 32)
|
||||||
{Reseed(blocking, seedSize);}
|
{Reseed(blocking, seedSize);}
|
||||||
void Reseed(bool blocking = false, unsigned int seedSize = 32);
|
void Reseed(bool blocking = false, unsigned int seedSize = 32);
|
||||||
|
|
@ -96,7 +96,7 @@ template <class BLOCK_CIPHER>
|
||||||
class AutoSeededX917RNG : public RandomNumberGenerator, public NotCopyable
|
class AutoSeededX917RNG : public RandomNumberGenerator, public NotCopyable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//! blocking will be ignored if the prefered RNG isn't available
|
//! use blocking to choose seeding with BlockingRng or NonblockingRng. the parameter is ignored if only one of these is available
|
||||||
explicit AutoSeededX917RNG(bool blocking = false)
|
explicit AutoSeededX917RNG(bool blocking = false)
|
||||||
{Reseed(blocking);}
|
{Reseed(blocking);}
|
||||||
void Reseed(bool blocking = false);
|
void Reseed(bool blocking = false);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue