From: Stephan Mueller Subject: Re: [PATCH] CPU Jitter RNG: inclusion into kernel crypto API and /dev/random Date: Thu, 14 Nov 2013 19:34:04 +0100 Message-ID: <1442638.aGWDm8aNpM@tauon> References: <2579337.FPgJGgHYdz@tauon> <3127174.i8ueAho43m@tauon> <528516BE.2040204@ladisch.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Theodore Ts'o , Pavel Machek , sandy harris , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Nicholas Mc Guire To: Clemens Ladisch Return-path: Received: from mail.eperm.de ([89.247.134.16]:37333 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752832Ab3KNSeS (ORCPT ); Thu, 14 Nov 2013 13:34:18 -0500 Received: from tauon.localnet by mail.eperm.de with [XMail 1.27 ESMTP Server] id for from ; Thu, 14 Nov 2013 19:34:06 +0100 In-Reply-To: <528516BE.2040204@ladisch.de> Sender: linux-crypto-owner@vger.kernel.org List-ID: Am Donnerstag, 14. November 2013, 19:30:22 schrieb Clemens Ladisch: Hi Clemens, >Stephan Mueller wrote: >> Am Donnerstag, 14. November 2013, 11:51:03 schrieb Clemens Ladisch: >>> An attacker would not try to detect patterns; he would apply >>> knowledge >>> of the internals. >> >> I do not buy that argument, because if an attacker can detect or >> deduce the internals of the CPU, he surely can detect the state of >> the input_pool or the other entropy pools behind /dev/random. > >With "internals", I do not mean the actual state of the CPU, but the >behaviour of all the CPU's execution engines. > >An Intel engineer might know how to affect the CPU so that the CPU >jitter code measures a deterministic pattern, but he will not know the >contents of my memory. Here I agree fully. > >>> Statistical tests are useful only for detecting the absence of >>> entropy, not for the opposite. >> >> Again, I fully agree. But it is equally important to understand that >> entropy is relative. > >In cryptography, we care about absolute entropy, i.e., _nobody_ must be >able to predict the RNG output, not even any CPU engineer. With your clarification above, I agree here fully. And now my task is to verify the root cause which I seem to have found. Let me do my homework. Ciao Stephan