Typedefs | |
typedef C4eSysStatus(* | C4eRngFunc )(C4eArchSize len, C4eArchUint8 *buf, void *usrarg) |
Typedef for Random Number Generator (RNG) function. | |
Enumerations | |
enum | C4eRngMode { C4eRngModeRaw, C4eRngModePkcs1v1 } |
Functions | |
C4eRngFunc | c4e_rng_install (C4eRngFunc fn_rng, void *arg_rng) |
Setup of random number generator (callback) function. |
typedef C4eSysStatus(* C4eRngFunc)(C4eArchSize len, C4eArchUint8 *buf, void *usrarg) |
Typedef for Random Number Generator (RNG) function.
[in] | len | Number of random bytes requested. |
[out] | buf | Buffer to be filled with random data (bytes). |
[in] | usrarg | User argument as passed to c4e_rng_install(). |
enum C4eRngMode |
Random number generator mode.
The random number generator mode has to be used in conjunction with function c4e_rng_rand().
C4eRngFunc c4e_rng_install | ( | C4eRngFunc | fn_rng, | |
void * | arg_rng | |||
) |
Setup of random number generator (callback) function.
[in] | fn_rng | Random number generator (callback) function. |
[in] | arg_rng | Argument to be passed to call of fn_rng . |
NULL
).