diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-01-28 22:03:10 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-01-28 22:03:10 (GMT) |
commit | 7518a795db507343cc0aa73a0b825e51a8c86eca (patch) | |
tree | 6ec662d3bfb012894311a09a258729230243861d /libtommath/tommath.h | |
parent | af3406f86c40c78cff50cb5003b8be0eae448d54 (diff) | |
parent | 0f79f6ed15e27fe0856eda9d3818912f85a57a42 (diff) | |
download | tcl-7518a795db507343cc0aa73a0b825e51a8c86eca.zip tcl-7518a795db507343cc0aa73a0b825e51a8c86eca.tar.gz tcl-7518a795db507343cc0aa73a0b825e51a8c86eca.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 1c16641..ce38975 100644 --- a/libtommath/tommath.h +++ b/libtommath/tommath.h @@ -284,9 +284,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 |