Add a new ioctl which forces the the crng to be reseeded.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -35,6 +35,9 @@ · 34 unmodified lines | ||
| 35 | 35 | /* Clear the entropy pool and associated counters. (Superuser only.) */ |
| 36 | 36 | #define RNDCLEARPOOL _IO( 'R', 0x06 ) |
| 37 | 37 | |
| 38 | +/* Reseed CRNG. (Superuser only.) */ | |
| 39 | +#define RNDRESEEDCRNG _IO( 'R', 0x07 ) | |
| 40 | + | |
| 38 | 41 | struct rand_pool_info { |
| 39 | 42 | int entropy_count; |
| 40 | 43 | int buf_size; |