clarify comment of ltm_rng()
This commit is contained in:
		
							parent
							
								
									dd68e313de
								
							
						
					
					
						commit
						7ac11218ca
					
				| @ -281,9 +281,10 @@ int mp_cnt_lsb(const mp_int *a); | |||||||
| int mp_rand(mp_int *a, int digits); | int mp_rand(mp_int *a, int digits); | ||||||
| 
 | 
 | ||||||
| #ifdef MP_PRNG_ENABLE_LTM_RNG | #ifdef MP_PRNG_ENABLE_LTM_RNG | ||||||
| /* as last resort we will fall back to libtomcrypt's rng_get_bytes()
 | /* A last resort to provide random data on systems without any of the other
 | ||||||
|  * in case you don't use libtomcrypt or use it w/o rng_get_bytes() |  * implemented ways to gather entropy. | ||||||
|  * you have to implement it somewhere else, as it's required */ |  * 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 unsigned long (*ltm_rng)(unsigned char *out, unsigned long outlen, void (*callback)(void)); | ||||||
| extern void (*ltm_rng_callback)(void); | extern void (*ltm_rng_callback)(void); | ||||||
| #endif | #endif | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user