Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 2003 20:11:45 +0100
From:      Mark Murray <mark@grondar.org>
To:        Mike Silbersack <silby@silby.com>
Cc:        cvs-src@FreeBSD.org
Subject:   Re: cvs commit: src/sys/libkern arc4random.c 
Message-ID:  <200308151911.h7FJBkOI003844@grimreaper.grondar.org>
In-Reply-To: Your message of "Fri, 15 Aug 2003 13:41:42 CDT." <20030815133943.I1565@odysseus.silby.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Silbersack writes:
> > How did you validate the this change?  I strongly suggest that mods like
> > this need review before commit.  Subtle problems can go unnoticed for a
> > long time.
> >
> > 	Sam
> 
> I'm fairly confident that I did not add any bugs in this commit.  However,
> I also have no way of knowing if arc4random was working correctly before
> the commit either... How hard would it be to hook up the randomness
> testing code you committed a few months back?  If the testing code is in
> userland, perhaps we could export a /dev/arandom like openbsd does for
> simpler testing.

I have not looked at the locking, but I have looked at this from a
randomness perspective.

With that in mind, I think Mike did the right thing in making sure
that the first chunk of arcfour 'randomness' is ditched after a
rekey. It may be fixing a non-problem, but if there is an undisclosed
problem in determining the arcfour sequence, this helps thwart that.

For the paranoids, this is cheap (almost free), and is solid from a
arcfour-neurotic perspective.

M
--
Mark Murray
iumop ap!sdn w,I idlaH



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308151911.h7FJBkOI003844>