26 #ifndef MPHELL_INIT_ARITH_H 27 #define MPHELL_INIT_ARITH_H 35 extern uint16_t random_security_strength;
75 mphell_rng(
void * param,
unsigned char * res,
size_t n);
int mphell_rng(void *param, unsigned char *res, size_t n)
Set res to n random bytes.
uint32_t rand32()
Return a 32 bits random number using MPHELL random process.
enum random_algo random_type
Define the random algorithm (DRBG algorithm)
void init_mphell(const uint16_t security_strength, const random_type type, const entropy_type entropy)
Initialise MPHELL with security_strength bits of security (for random number only).
void free_mphell()
Free MPHELL memory, especially the big amount of temporary memory.
Declaration of random functions.
Declaration of internal MPHELL temporary memory functions.
enum entropy_source entropy_type
Define the entropy source.