random: Allow building rndjent.c with stats collecting enabled.
authorWerner Koch <wk@gnupg.org>
Fri, 16 Jun 2017 10:31:11 +0000 (12:31 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 16 Jun 2017 10:31:11 +0000 (12:31 +0200)
commitee3a74f5539cbc5182ce089994e37c16ce612149
tree747595a01ce933ae88bebc6b417528066fb4e5cf
parent8f6082e95f30c1ba68d2de23da90146f87f0c66c
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>
LICENSES
random/rndjent.c