Implement global config file /etc/gcrypt/random.conf
authorWerner Koch <wk@gnupg.org>
Fri, 16 Jun 2017 08:42:44 +0000 (10:42 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 16 Jun 2017 08:42:44 +0000 (10:42 +0200)
commitb05a4abc358b204dba343d9cfbd59fdc828c1686
treecfa7f763b569535f5bf00cdc22292a8694a4fb5e
parentf5e7763ddca59dcd9ac9f2f4d50cb41b14a34a9e
Implement global config file /etc/gcrypt/random.conf

* src/hwfeatures.c (my_isascii): Move macro to ...
* src/g10lib.h: here.
* tests/random.c (main): Dump random stats.
* random/random.c (RANDOM_CONF_FILE): New.
(_gcry_random_read_conf): New.
(_gcry_random_dump_stats): Call rndjent stats.
* random/rndjent.c (jent_rng_totalcalls, jent_rng_totalbytes): New.
(_gcry_rndjent_poll): Take care of config option disable-jent.  Wipe
buffer.  Bump counters.
(_gcry_rndjent_dump_stats): New.

Signed-off-by: Werner Koch <wk@gnupg.org>
doc/gcrypt.texi
random/rand-internal.h
random/random.c
random/rndjent.c
src/g10lib.h
src/hwfeatures.c
tests/random.c