Received: from eggs.gnu.org ([208.118.235.92]:60043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRpz8-0001ej-5C for qemu-devel@nongnu.org; Fri, 26 Oct 2012 15:54:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRpz6-00080t-SO for qemu-devel@nongnu.org; Fri, 26 Oct 2012 15:54:26 -0400 Received: from terminus.zytor.com ([198.137.202.10]:49005 helo=mail.zytor.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRpz6-00080j-KA for qemu-devel@nongnu.org; Fri, 26 Oct 2012 15:54:24 -0400 In-Reply-To: <508AE9A6.4060304@redhat.com> References: <604401631.2277495.1351264128301.JavaMail.root@redhat.com> <871ugl44v5.fsf@codemonkey.ws> <508AB5C0.2000304@zytor.com> <508ADD66.5040909@redhat.com> <5ea4bbfb-b761-42ef-93f8-7c91fee0bb30@email.android.com> <508AE9A6.4060304@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: "H. Peter Anvin" Date: Fri, 26 Oct 2012 12:54:14 -0700 Message-ID: Subject: Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Amit Shah , Anthony Liguori , Andreas Faerber , qemu-devel@nongnu.org That statement is pretty toxic... I wonder where it came from. It is at best horribly misleading and actively encourages dangerous behaviours even for the cases where it isn't actively wrong. Paolo Bonzini wrote: >Il 26/10/2012 21:07, H. Peter Anvin ha scritto: >> This is surreal. Output from /dev/hwrng turns into output for >/dev/random... it us guaranteed worse; period, end of story. > >Isn't that exactly what happens in bare-metal? hwrng -> rngd -> >random. Instead here >we'd have, host hwrng -> virtio-rng-pci -> guest hwrng -> guest rngd -> >guest random. > >The only difference is that you paravirtualize access to the host hwrng >to a) distribute >entropy to multiple guests; b) support migration across hosts with >different CPUs and >hardware. > >> I don't know who the "agreement" is with, but it is ridiculous in >this case. > >man 4 random: > >While some safety margin above that minimum is reasonable, as a guard >against >flaws in the CPRNG algorithm, no cryptographic primitive available >today can >hope to promise more than 256 bits of security, so if any program reads > more >than 256 bits (32 bytes) from the kernel random pool per invocation, >or per >reasonable reseed interval (not less than one minute), that should be >taken > as a sign that its cryptography is not skilfully implemented. > >Paolo -- Sent from my mobile phone. Please excuse brevity and lack of formatting.