From: Neil Horman Subject: Re: [PATCH 0/2] RNG: Add Pseudo Random Number Generator to kernel Date: Fri, 4 Jul 2008 07:44:15 -0400 Message-ID: <20080704114415.GA9440@hmsreliant.think-freely.org> References: <20080703201924.GA5237@hmsendeavour.rdu.redhat.com> <20080703203955.GA13654@Chamillionaire.breakpoint.cc> <87iqvmsfpa.fsf@basil.nowhere.org> <20080704021028.GA7484@hmsreliant.think-freely.org> <20080704084415.GA17212@Chamillionaire.breakpoint.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andi Kleen , linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net To: Sebastian Siewior Return-path: Received: from ra.tuxdriver.com ([70.61.120.52]:4894 "EHLO ra.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752608AbYGDLol (ORCPT ); Fri, 4 Jul 2008 07:44:41 -0400 Content-Disposition: inline In-Reply-To: <20080704084415.GA17212@Chamillionaire.breakpoint.cc> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Fri, Jul 04, 2008 at 10:44:15AM +0200, Sebastian Siewior wrote: > * Neil Horman | 2008-07-03 22:10:28 [-0400]: > > >On Fri, Jul 04, 2008 at 01:36:33AM +0200, Andi Kleen wrote: > >> Sebastian Siewior writes: > >> > > >> > Anything wrong with get_random_bytes()? > >> > Whats the advantage over get_random_bytes()? > >> > >> get_random_bytes() is not a _pseudo_ random number generator, > >> it doesn't have a seed and you cannot get repeatable sequences > >> out of it. > >> > >> random32.c is though, but currently it's not reseedable either. > >> I needed a true reseedable prng a few times too so this > >> would be useful, although i guess random32.c could have been > >> fixed. But perhaps there's a need for a more cryptographically > >> strong PRNG too. > >> > >> -Andi > >I've not looked at random32.c specifically, but I wrote this module specifically > >to be FIPS 140 compliant, which requires several things, including, but not > >limited to the use of the AES and DES3 ciphers. The details of the requirements > >that I wrote it to are found in ANSI X9.31, you can find it here: > Do you want a repeatable random number generator or just to be FIPS140 > compliant (for instance for a certificate thing)? > The former. this is intended to be a prng that can produce repeatable results for the same initial vector, key, secret vector V and input DT. This will also have the effet of being FIPS compliant. Regards Neil -- /**************************************************** * Neil Horman * Software Engineer, Red Hat ****************************************************/