My Project
Loading...
Searching...
No Matches
random.h
Go to the documentation of this file.
1
27int wc_InitNetRandom(const char* configFile, wnr_hmac_key hmac_cb, int timeout);
28
51
98int wc_InitRng(WC_RNG*);
99
138int wc_RNG_GenerateBlock(WC_RNG* rng, byte* b, word32 sz);
139
170WC_RNG* wc_rng_new(byte* nonce, word32 nonceSz, void* heap)
171
172
210int wc_RNG_GenerateByte(WC_RNG* rng, byte* b);
211
244int wc_FreeRng(WC_RNG*);
245
274WC_RNG* wc_rng_free(WC_RNG* rng);
275
325int 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).
int wc_FreeNetRandom(void)
Free global Whitewood netRandom context.
WC_RNG * wc_rng_new(byte *nonce, word32 nonceSz, void *heap) int wc_RNG_GenerateByte(WC_RNG *rng
Creates a new WC_RNG structure.
WC_RNG byte * b
Definition random.h:210