diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-01-28 21:54:39 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-01-28 21:54:39 (GMT) |
| commit | 0f79f6ed15e27fe0856eda9d3818912f85a57a42 (patch) | |
| tree | f1bfd43005b7fa9a17d58a269e4189fbbad64958 /libtommath/tommath.h | |
| parent | d6f67fed9485d427ed9150806ca7fabfb3b6e65f (diff) | |
| parent | 7cb32717a995bee029ee18710b3e25e8e73f7377 (diff) | |
| download | tcl-0f79f6ed15e27fe0856eda9d3818912f85a57a42.zip tcl-0f79f6ed15e27fe0856eda9d3818912f85a57a42.tar.gz tcl-0f79f6ed15e27fe0856eda9d3818912f85a57a42.tar.bz2 | |
Merge libtommath v1.1.0
Diffstat (limited to 'libtommath/tommath.h')
| -rw-r--r-- | libtommath/tommath.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libtommath/tommath.h b/libtommath/tommath.h index b859679..c240d80 100644 --- a/libtommath/tommath.h +++ b/libtommath/tommath.h @@ -282,9 +282,10 @@ int mp_rand(mp_int *a, int digits); int mp_rand_digit(mp_digit *r); #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 |
