[DragonFlyBSD - Bug #1358] (Rejected) Random number generator

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Thu Jan 15 08:52:39 PST 2015


Issue #1358 has been updated by alexh.

Status changed from Feedback to Rejected

The entropy file solution is absolutely standard (but was disabled for a long time on DragonFly), and one of the very few ways of ensuring enough entropy at boot time (without a hardware RNG, etc). It's rather sad that you think a high resolution timer is a valid way of achieving the same.

In any case, not really in the mood of arguing about this, so I'm going closing this.

----------------------------------------
Bug #1358: Random number generator
http://bugs.dragonflybsd.org/issues/1358#change-12478

* Author: robin.carey1
* Status: Rejected
* Priority: Low
* Assignee: 
* Category: Crypto
* Target version: 4.2.x
----------------------------------------
---------- Forwarded message ----------
From: Robin Carey <robin.carey1 at googlemail.com>
Date: 2009/5/8
Subject: Random number generator
To: submit-request at lists.dragonflybsd.org

I had an idea about how to improve the random number generator in
DragonFlyBSD which I would like to share.

There is a bootstrapping problem where it is difficult to get enough
"entropy" at boot to ensure the random number generator is fully seeded and
completely unpredictable immediately after the system has booted.

Currently the random number generator seeds itself from nanotime() and
nanouptime() which introduces a small degree of entropy, but probably not
enough to ensure the above requirement is met.

So a possible improvement could be made by introducing more "entropy" at
initialisation from a high resolution timer like the TSC - rdtsc() (which is
also used in the random number generator - NANOUP_EVENT() - courtesy of
Matthew Dillon). That is my suggestion: Use rdtsc() aswell as nanotime() and
nanouptime() to ensure the random number generator has enough "entropy" at
boot to ensure it is fully seeded and completely unpredictable. If this were
done (and true) then you would not need the current ability of the random
number generator being able to be seeded from a file - an ability which
Matthew Dillon implemented to solve the boot-seeding problem.

I am wondering if there are any other high resolution timers available .....

---Files--------------------------------
unnamed (1.92 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list