File: kernel_prng_io.h

package info (click to toggle)
entropybroker 2.9-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,600 kB
  • sloc: cpp: 14,386; sh: 934; makefile: 188; java: 148; perl: 12
file content (7 lines) | stat: -rw-r--r-- 274 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
#define DEV_RANDOM	"/dev/random"
#define DEV_URANDOM	"/dev/urandom"
#define PROC_POOLSIZE	"/proc/sys/kernel/random/poolsize"

int kernel_rng_get_entropy_count();
int kernel_rng_add_entropy(unsigned char *data, int n, int n_bits);
int kernel_rng_get_max_entropy_count(void);