History

random: add new ioctl RNDRESEEDCRNG

Add a new ioctl which forces the the crng to be reseeded.

Theodore Ts'o committed 8 years ago

Commit d848e5f1 parent 0bb29a82 files · +15 −1Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/random.h+3−0
@@ -35,6 +35,9 @@ · 34 unmodified lines
35/* Clear the entropy pool and associated counters. (Superuser only.) */35/* Clear the entropy pool and associated counters. (Superuser only.) */
36#define RNDCLEARPOOL _IO( 'R', 0x06 )36#define RNDCLEARPOOL _IO( 'R', 0x06 )
37 37
38/* Reseed CRNG. (Superuser only.) */
39#define RNDRESEEDCRNG _IO( 'R', 0x07 )
40
38struct rand_pool_info {41struct rand_pool_info {
39 int entropy_count;42 int entropy_count;
40 int buf_size;43 int buf_size;