Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2012 17:36:54 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Gleb Kurtsou <gleb.kurtsou@gmail.com>
Cc:        freebsd-security@FreeBSD.org
Subject:   Re: OpenSSL change for review.
Message-ID:  <20120613153654.GA1399@garage.freebsd.pl>
In-Reply-To: <20120609085141.GA1153@reks>
References:  <20120531194825.GB1400@garage.freebsd.pl> <20120609085141.GA1153@reks>

next in thread | previous in thread | raw e-mail | index | archive | help

--WIyZ46R2i8wDzkSu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jun 09, 2012 at 11:51:41AM +0300, Gleb Kurtsou wrote:
> On (31/05/2012 21:48), Pawel Jakub Dawidek wrote:
> > As learned on someone else's mistakes, I'd like to ask for a review of
> > those changes related to random data handling:
> >=20
> > 	http://people.freebsd.org/~pjd/patches/libc_arc4random.c.patch
> > 	http://people.freebsd.org/~pjd/patches/openssl_rand_unix.c.patch
> >=20
> > The first patch changes arc4random() to use sysctl to obtain random data
> > instead of opening /dev/random. The main reason here is to make it more
> > sandbox-friendly. Once closed in sandbox, a process can no longer open
> > files, so it has no access to proper random data. As a side-effect it
> > should be a bit faster as instead of three system calls (open, read and
> > close) we use only one (__sysctl).
> >
> > The second patch enables the use of libc's arc4random(3) in OpenSSL.
>=20
> While at it, did you consider replacing default homegrown OpenSSL random
> generator (ssleay_rand_*) with something standard (this "hash
> uninitialized user buffer to increase entropy" thing makes me nervous,
> which was also the source of well known Debian RSA key generation issue).

Nope, sorry. This is out of my scope currently.

> Patches are good to commit, IMHO.

Thanks for review.

--=20
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://tupytaj.pl

--WIyZ46R2i8wDzkSu
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAk/Ys5YACgkQForvXbEpPzTmWgCgjHYDoZ1C7j+hLTaclxewniEC
SlgAn3i4Aed/vC1wV06zvVQLkfPBN/o7
=yXji
-----END PGP SIGNATURE-----

--WIyZ46R2i8wDzkSu--



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