Data Structures | |
struct | randomGenerator |
struct | randomGeneratorContext |
Pseudo-random Number Generators | |
typedef void | randomGeneratorParam |
typedef int(* | randomGeneratorSetup )(randomGeneratorParam *param) |
typedef int(* | randomGeneratorSeed )(randomGeneratorParam *param, const uint32 *data, int size) |
typedef int(* | randomGeneratorNext )(randomGeneratorParam *param, uint32 *data, int size) |
typedef int(* | randomGeneratorCleanup )(randomGeneratorParam *param) |
int | randomGeneratorCount (void) |
const randomGenerator * | randomGeneratorGet (int index) |
const randomGenerator * | randomGeneratorFind (const char *name) |
const randomGenerator * | randomGeneratorDefault (void) |
int | randomGeneratorContextInit (randomGeneratorContext *ctxt, const randomGenerator *rng) |
int | randomGeneratorContextFree (randomGeneratorContext *ctxt) |
int | randomGeneratorContextNext (randomGeneratorContext *ctxt, uint32 *data, int size) |
|
Cleanup after using a generator.
Definition at line 164 of file beecrypt.h. |
|
Return an array of 32-bit unsigned integers of given size with pseudo-random data.
Definition at line 155 of file beecrypt.h. |
|
Definition at line 123 of file beecrypt.h. Referenced by randomGeneratorContextFree, and randomGeneratorContextInit. |
|
Re-seed the random generator with user-provided entropy.
Definition at line 143 of file beecrypt.h. |
|
Initialize the parameters for use, and seed the generator with entropy from the default entropy source.
Definition at line 132 of file beecrypt.h. |
|
Destroy a randomGenerator instance. Definition at line 231 of file beecrypt.c. |
|
Initialize a randomGenerator instance. Definition at line 210 of file beecrypt.c. References BEECRYPTAPI. |
|
Definition at line 257 of file beecrypt.c. References BEECRYPTAPI, and uint32. |
|
Return the number of generators available.
Definition at line 165 of file beecrypt.c. |
|
Retrieve the default generator. If the BEECRYPT_RANDOM environment variable is set, use that generator. Otherwise, use "fips186prng".
Definition at line 198 of file beecrypt.c. |
|
Retrieve a generator by name.
Definition at line 183 of file beecrypt.c. Referenced by randomGeneratorDefault. |
|
Retrieve a generator by index.
Definition at line 170 of file beecrypt.c. |