My Project
random.h
Go to the documentation of this file.
1 
27 int wc_InitNetRandom(const char* configFile, wnr_hmac_key hmac_cb, int timeout);
28 
50 int wc_FreeNetRandom(void);
51 
98 int wc_InitRng(WC_RNG*);
99 
138 int wc_RNG_GenerateBlock(WC_RNG* rng, byte* b, word32 sz);
139 
170 WC_RNG* wc_rng_new(byte* nonce, word32 nonceSz, void* heap)
171 
172 
210 int wc_RNG_GenerateByte(WC_RNG* rng, byte* b);
211 
244 int wc_FreeRng(WC_RNG*);
245 
274 WC_RNG* wc_rng_free(WC_RNG* rng);
275 
325 int wc_RNG_HealthTest(int reseed,
326  const byte* entropyA, word32 entropyASz,
327  const byte* entropyB, word32 entropyBSz,
328  byte* output, word32 outputSz);
WC_RNG * wc_rng_free(WC_RNG *rng)
Should be called when RNG no longer needed in order to securely free rng.
int wc_InitRng(WC_RNG *)
Gets the seed (from OS) and key cipher for rng. rng->drbg (deterministic random bit generator) alloca...
int wc_FreeRng(WC_RNG *)
Should be called when RNG no longer needed in order to securely free drgb. Zeros and XFREEs rng-drbg.
int wc_InitNetRandom(const char *configFile, wnr_hmac_key hmac_cb, int timeout)
Init global Whitewood netRandom context.
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.
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).
WC_RNG * wc_rng_new(byte *nonce, word32 nonceSz, void *heap) int wc_RNG_GenerateByte(WC_RNG *rng
Creates a new WC_RNG structure.
int wc_FreeNetRandom(void)
Free global Whitewood netRandom context.
WC_RNG byte * b
Definition: random.h:210