clarify comment of ltm_rng()

This commit is contained in:
Steffen Jaeckel 2018-12-26 15:19:07 +01:00
parent dd68e313de
commit 7ac11218ca

View File

@ -281,9 +281,10 @@ int mp_cnt_lsb(const mp_int *a);
int mp_rand(mp_int *a, int digits);
#ifdef MP_PRNG_ENABLE_LTM_RNG
/* as last resort we will fall back to libtomcrypt's rng_get_bytes()
* in case you don't use libtomcrypt or use it w/o rng_get_bytes()
* you have to implement it somewhere else, as it's required */
/* A last resort to provide random data on systems without any of the other
* implemented ways to gather entropy.
* It is compatible with `rng_get_bytes()` from libtomcrypt so you could
* provide that one and then set `ltm_rng = rng_get_bytes;` */
extern unsigned long (*ltm_rng)(unsigned char *out, unsigned long outlen, void (*callback)(void));
extern void (*ltm_rng_callback)(void);
#endif