Random Number Generator. More...
#include "c4e_sys.h"
Go to the source code of this file.
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. | |
C4eSysStatus | c4e_rng_rand (C4eRngMode mode, C4eArchUint8 *buf, C4eArchSize len) |
Random Number Generator (RNG). |
Random Number Generator.
Definition in file c4e_rng.h.
C4eSysStatus c4e_rng_rand | ( | C4eRngMode | mode, | |
C4eArchUint8 * | buf, | |||
C4eArchSize | len | |||
) |
Random Number Generator (RNG).
[in] | mode | Random number generator mode. |
[out] | buf | Buffer to be filled with random data. |
[in] | len | Number of random bytes requested. |