Re: Collecting entropy from device_attach() times.

看板FB_security作者時間13年前 (2012/09/20 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/80 (看更多)
On Tue, 18 Sep 2012 23:14:22 +0200 Pawel Jakub Dawidek wrote: > Hi. >=20 > The patch is here: >=20 > http://people.freebsd.org/~pjd/patches/harvest_device_attach.patch >=20 > Comments? >=20 + attachtime =3D get_cyclecount() - attachtime; the above line is redundant since random_harvest() already contains a call to get_cyclecount(). On Wed, 19 Sep 2012 17:28:46 +0200 Dag-Erling Sm=F8rgrav wrote: > You can't rely on the existence of a TSC. I would suggest using the > fractional part of binuptime instead. get_cyclecount() is supposed to be platform independent and should fall-back to nanotime(9) if TSC or equivalent is absent.=20 _______________________________________________ freebsd-security@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-security To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
文章代碼(AID): #1GMW-YiM (FB_security)
討論串 (同標題文章)
文章代碼(AID): #1GMW-YiM (FB_security)