23 #ifndef CRYPTO_NOISESOURCE_H
24 #define CRYPTO_NOISESOURCE_H
41 virtual void output(
const uint8_t *data,
size_t len,
unsigned int credit);
Abstract base class for random noise sources.
virtual void output(const uint8_t *data, size_t len, unsigned int credit)
Called from subclasses to output noise to the global random number pool.
virtual void added()
Called when the noise source is added to RNG with RNG.addNoiseSource().
virtual ~NoiseSource()
Destroys this random noise source.
NoiseSource()
Constructs a new random noise source.
virtual void stir()=0
Stirs entropy from this noise source into the global random number pool.
virtual bool calibrating() const =0
Determine if the noise source is still calibrating itself.