Next Previous Table Of Contents

The SHA1PRNG Class

#include <prng/sha1prng.hxx>

Overview

The SHA1PRNG class provides an implementation of a pseudo-random number generator specified in Section 3.1 of FIPS 186. As the SHA1PRNG class is a subclass of the PRNG abstract base class, the methods presented there are not redescribed here.

Public Methods

Constructor

SHA1PRNG(const void* preSeed, const int preSeedSize);
Creates a SHA1PRNG instance from the preSeedSize byte long high endian byte string pointed to by preSeed. The data pointed at by preSeed is compressed (or expanded) to its 160-bit SHA-1 value. This SHA-1 value then acts as the seed for the pseudo-random number generator specified in Section 3.1 of FIPS 186.

Destructor

~SHA1PRNG();
Nothing special is done by the desctructor.
Next Previous Table Of Contents