Home GnuPG

random: Allow building rndjent.c with stats collecting enabled.

Description

random: Allow building rndjent.c with stats collecting enabled.

* random/rndjent.c: Change license to the one used by jitterentropy.h.
(jent_init_statistic): New.
(jent_bit_count): New.
(jent_statistic_copy_stat): new.
(jent_calc_statistic): New.

New code taken from Stephan's jitterentropy-stat.c. This does now
build with CONFIG_CRYPTO_CPU_JITTERENTROPY_STAT defined; not sure
whether this is already useful. Changed the license due to the new
code.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jun 16 2017, 12:31 PM
Parents
rC8f6082e95f30: New global config option "only-urandom".
Branches
Unknown
Tags
Unknown