summaryrefslogtreecommitdiff
path: root/random/jitterentropy.h
Commit message (Collapse)AuthorAgeFilesLines
* jitterentropy: fix building on Win32Jussi Kivilinna2021-11-181-0/+2
| | | | | | | | | * random/jitterentropy.h (jent_notime_ctx): Add #ifdef JENT_CONF_ENABLE_INTERNAL_TIMER around pthread variables. -- GnuPG-bug-id: 5523 Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
* jitterentropy: Disable use of pthread.NIIBE Yutaka2021-11-171-1/+3
| | | | | | | | | | | | | | | * random/jitterentropy.h (JENT_CONF_ENABLE_INTERNAL_TIMER): Undefine. * random/jitterentropy-base.c [JENT_CONF_ENABLE_INTERNAL_TIMER] (jent_entropy_switch_notime_impl): Add conditional compilation. * random/jitterentropy-base-user.h [JENT_CONF_ENABLE_INTERNAL_TIMER] (jent_yield): Likewise. * random/jitterentropy.h [JENT_CONF_ENABLE_INTERNAL_TIMER] (jent_entropy_switch_notime_impl): Likewise. -- GnuPG-bug-id: 5523 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* jitterentropy: Merge from jitterentropy-library-3.3.0.NIIBE Yutaka2021-11-171-29/+328
| | | | | | | | | | | | | | | | | | | | | | | | | * random/jitterentropy-base.h: New. * random/jitterentropy-gcd.c: New. * random/jitterentropy-gcd.h: New. * random/jitterentropy-health.c: New. * random/jitterentropy-health.h: New. * random/jitterentropy-noise.c: New. * random/jitterentropy-noise.h: New. * random/jitterentropy-sha3.c: New. * random/jitterentropy-sha3.h: New. * random/jitterentropy-timer.c: New. * random/jitterentropy-timer.h: New. * random/jitterentropy-base.c: Update. * random/jitterentropy.h: Update. * random/jitterentropy-base-user.h: Update, keeping ours mostly. -- Unicode characters are replaced or removed (quotation mark, minus, and BOM). Inconsistent Tabs are replaced by spaces. GnuPG-bug-id: 5523 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* Remove byte order mark.NIIBE Yutaka2017-07-191-1/+1
| | | | | | | * random/jitterentropy-base.c, random/jitterentropy.h: Remove byte order mark. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* random: Update jitterentropy to 2.1.0.Werner Koch2017-06-231-93/+64
| | | | | | | | | | | | | | | | | | | * random/rndjent.c (jent_get_nstime, jent_zfree) (jent_fips_enabled, jent_zalloc): Move functions and macros to ... * random/jitterentropy-base-user.h: this file. That files was not used before. * random/Makefile.am (EXTRA_librandom_la_SOURCES): Add jitterentropy-base-user. * random/jitterentropy-base.c: Update to version 2.1.0. * random/jitterentropy.h: Ditto. -- The files jitterentropy-base.c and jitterentropy.h are are now verbatim copies of the upstream source using a private copy received prior to a push to the upstream repo. Though, 3 white spaces issues were fixed. Signed-off-by: Werner Koch <wk@gnupg.org>
* random: Changes to original Jitter RNG implementationWerner Koch2017-06-141-36/+41
| | | | | | | | * random/jitterentropy-base.c: Change double underscore symbols and make all functions static. * random/jitterentropy.h: Likewise. Signed-off-by: Werner Koch <wk@gnupg.org>
* random: Add original Jitter RNG implementationStephan Mueller2017-06-131-0/+172
* random/jitterentropy-base-user.h: New. * random/jitterentropy-base.c: New. * random/jitterentropy.h: New. -- Signed-off-by: Werner Koch <wk@gnupg.org> - Tabs and trailing white spaces removed from original source. - Source received by mail dated Fri, 27 Jan 2017 17:52:38 +0100 from Stephan