[Bug 222807] PURE entropy sources are harvested but not mixed in. Also, min-entropy low per SP800-90B measurements

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Oct 6 01:06:35 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222807

--- Comment #3 from Conrad Meyer <cem at freebsd.org> ---
(In reply to W. Dean Freeman from comment #0)
Re this patch, wouldn't this much smaller change fix the immediate issue?

--- a/sys/sys/random.h
+++ b/sys/sys/random.h
@@ -94,7 +94,7 @@ enum random_entropy_source {
        ENTROPYSOURCE
 };

-#define RANDOM_HARVEST_EVERYTHING_MASK ((1 << (RANDOM_ENVIRONMENTAL_END + 1))
- 1)
+#define RANDOM_HARVEST_EVERYTHING_MASK ((1 << ENTROPYSOURCE) - 1)


Changing the sysctl behaviors seems orthogonal to that change.  Sure, the
sysctls will not accurately reflect Pure sources.  But they will be harvested
correctly, I think.  Please let me know if I misunderstand.

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list