Mailing List Archive

[PATCH 1/2] rndw32: use rndhw for extra random input
* random/rndw32.c (_gcry_rndw32_gather_random): Use rndhw.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
---
random/rndw32.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/random/rndw32.c b/random/rndw32.c
index b3f63d207..4a18305aa 100644
--- a/random/rndw32.c
+++ b/random/rndw32.c
@@ -816,6 +816,13 @@ _gcry_rndw32_gather_random (void (*add)(const void*, size_t,
log_debug ("rndw32#gather_random: jent contributed extra %u bytes\n",
(unsigned int)n);

+ /* Read from a hardware source. */
+ n = _gcry_rndhw_poll_slow (add, origin, -1);
+
+ if (debug_me)
+ log_debug ("rndw32#gather_random: rndhw contributed extra %u bytes\n",
+ (unsigned int)n);
+
return 0;
}



_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: [PATCH 1/2] rndw32: use rndhw for extra random input [ In reply to ]
Hi!

On Mon, 3 Feb 2020 00:29, Jussi Kivilinna said:
> * random/rndw32.c (_gcry_rndw32_gather_random): Use rndhw.

Can you please explain why you think this makes sense. The random
number generator has been evaluated and approved for official secret
communication and thus such changes are highly critical should only done
with a very good reason.


Shalom-Salam,

Werner

--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.