Re: Collecting entropy from device_attach() times.

看板FB_security作者時間13年前 (2012/09/22 17:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串40/80 (看更多)
--FkmkrVfFsRoUs1wW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 19, 2012 at 07:28:36PM +0100, RW wrote: > On Tue, 18 Sep 2012 23:14:22 +0200 > Pawel Jakub Dawidek wrote: >=20 > > Hi. > >=20 >=20 > > The patch is here: > >=20 > > http://people.freebsd.org/~pjd/patches/harvest_device_attach.patch > >=20 > > Comments? > >=20 >=20 > + attachtime =3D get_cyclecount() - attachtime; >=20 > the above line is redundant since random_harvest() already contains a > call to get_cyclecount(). Agreed, although in more recent patch I need total time, so I can calculate how many bits it has, so I can estimate how much entropy there is. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl --FkmkrVfFsRoUs1wW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlBdgowACgkQForvXbEpPzT6LwCfQnX0XeMrJq57lGnxeFats/yo I6gAoOgyrhyRS4jBmCbwjAl9Ma6YzJFR =jesV -----END PGP SIGNATURE----- --FkmkrVfFsRoUs1wW--
文章代碼(AID): #1GNOMIP8 (FB_security)
討論串 (同標題文章)
文章代碼(AID): #1GNOMIP8 (FB_security)