My Project
Functions | Variables
random.h File Reference

Go to the source code of this file.

Functions

int wc_InitNetRandom (const char *configFile, wnr_hmac_key hmac_cb, int timeout)
 Init global Whitewood netRandom context. More...
 
int wc_FreeNetRandom (void)
 Free global Whitewood netRandom context. More...
 
int wc_InitRng (WC_RNG *)
 Gets the seed (from OS) and key cipher for rng. rng->drbg (deterministic random bit generator) allocated (should be deallocated with wc_FreeRng). This is a blocking operation. More...
 
int wc_RNG_GenerateBlock (WC_RNG *rng, byte *b, word32 sz)
 Copies a sz bytes of pseudorandom data to output. Will reseed rng if needed (blocking). More...
 
WC_RNG * wc_rng_new (byte *nonce, word32 nonceSz, void *heap) int wc_RNG_GenerateByte(WC_RNG *rng
 Creates a new WC_RNG structure. More...
 
int wc_FreeRng (WC_RNG *)
 Should be called when RNG no longer needed in order to securely free drgb. Zeros and XFREEs rng-drbg. More...
 
WC_RNG * wc_rng_free (WC_RNG *rng)
 Should be called when RNG no longer needed in order to securely free rng. More...
 
int wc_RNG_HealthTest (int reseed, const byte *entropyA, word32 entropyASz, const byte *entropyB, word32 entropyBSz, byte *output, word32 outputSz)
 Creates and tests functionality of drbg. More...
 

Variables

WC_RNG byte * b
 

Variable Documentation

◆ b

WC_RNG byte* b