random.h
1 
27 WOLFSSL_API int wc_InitNetRandom(const char*, wnr_hmac_key, int);
28 
50 WOLFSSL_API int wc_FreeNetRandom(void);
51 
98 WOLFSSL_API int wc_InitRng(WC_RNG*);
99 
138 WOLFSSL_API int wc_RNG_GenerateBlock(WC_RNG*, byte*, word32 sz);
139 
178 WOLFSSL_API int wc_RNG_GenerateByte(WC_RNG*, byte*);
179 
212 WOLFSSL_API int wc_FreeRng(WC_RNG*);
213 
263 WOLFSSL_API int wc_RNG_HealthTest(int reseed,
264  const byte* entropyA, word32 entropyASz,
265  const byte* entropyB, word32 entropyBSz,
266  byte* output, word32 outputSz);
WOLFSSL_API 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.
Definition: random.c:1024
WOLFSSL_API int wc_RNG_GenerateBlock(WC_RNG *, byte *, word32 sz)
Copies a sz bytes of pseudorandom data to output. Will reseed rng if needed (blocking).
Definition: random.c:896
WOLFSSL_API int wc_RNG_GenerateByte(WC_RNG *, byte *)
Calls wc_RNG_GenerateBlock to copy a byte of pseudorandom data to b. Will reseed rng if needed...
Definition: random.c:989
WOLFSSL_API int wc_InitRng(WC_RNG *)
Gets the seed (from OS) and key cipher for rng. rng->drbg (deterministic random bit generator) alloca...
Definition: random.c:869
Definition: random.h:153
WOLFSSL_API int wc_InitNetRandom(const char *, wnr_hmac_key, int)
Init global Whitewood netRandom context.
Definition: random.c:1231
WOLFSSL_API int wc_FreeNetRandom(void)
Free global Whitewood netRandom context.
Definition: random.c:1296
WOLFSSL_API int wc_FreeRng(WC_RNG *)
Should be called when RNG no longer needed in order to securely free drgb. Zeros and XFREEs rng-drbg...
Definition: random.c:995