Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1908211imm; Thu, 21 Jun 2018 04:30:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIJJhjWBji7/wfmGZNaZuqjGib9aYulhyJe8HJYGgMOwm01NpDgVuF4fNgYVgGkyjg5aNMR X-Received: by 2002:a65:410d:: with SMTP id w13-v6mr1215715pgp.414.1529580614894; Thu, 21 Jun 2018 04:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529580614; cv=none; d=google.com; s=arc-20160816; b=V127KQIQsahAmEX+QrYsbhZYZiYP5eJlWDGKXrZqQ1RV0gNDykkkXGpcK1G4djD/BQ qScTWngwH9IQPooGk+z4ZFez1tSHfxSVRxznDGPagpoya7Qr/HHSBUWPPdxvmaizSMjA eUc+XkvfbvNMgMb70CmHt23Y0I6dgahmkN5Vkh4OacFZQ4g5XxZ1LVzK+7rv+fCdDPnF thONEEuX1P9RQr8aRlRend6ftaNcQaO9if7db6oMKxrCaJ/XluAzRMyQ54/CSMYGazJY wJX4OnQQvIHx2cH65pbplljOxxxsnjW46v5gEBecu/cbCFGlMYdPmfsthDTlz1CU58yF 5mpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=+VQne2lbyafF92iYBoIRJ7IVFdARW2GwqUKGPlRXjgQ=; b=qbFZfDy72rF4dPanbruLngD6GBiQHxKcTz9FJr0fETeIgWdClpf6ii14ZQYI4iwjx8 roUNewLydoQ3Ca0TQYbfzxH4uP+nv9s9SPMjTxXvZm0z10lDI0iREbRXpJ7BZWIpL51G dZyKSehVR2bSEVaAeIglqCGyFN3nmdyxbccB/WoKx56ExPO5DfkLZtXjoQHwu3lX+kYZ j7kJmKHVapjJ58q/6qZrn/2AuXAIPuV1XxgAUPlIDdjwVa7LO+ri7io8kGVl+6ZTGbhs zgUerhxdRlm7LH+Qp2t4p827vVwEF1kOgZSmVZJ1NpwVs5Ulz1lmbW4ma8rd4J2UWAEv wLsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hEraksgY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64-v6si890920pgc.179.2018.06.21.04.29.59; Thu, 21 Jun 2018 04:30:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hEraksgY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933025AbeFUL1T (ORCPT + 99 others); Thu, 21 Jun 2018 07:27:19 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:51072 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932855AbeFUL1Q (ORCPT ); Thu, 21 Jun 2018 07:27:16 -0400 Received: by mail-wm0-f68.google.com with SMTP id e16-v6so4574643wmd.0 for ; Thu, 21 Jun 2018 04:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+VQne2lbyafF92iYBoIRJ7IVFdARW2GwqUKGPlRXjgQ=; b=hEraksgYhcD41bTRHTHQd6Io1b3GYq/CRE2TkJGBptBB+FRMepxz4lMWMTun3D64H5 gpR4UhsfKZgXqf84+2YiTbSOQXiPkII4U5IcH0NExwPv1JmyvmYrOIK+LKSj9OldHibe 6QNt1/teRsaS8m5RrSfw5GV04G8FutdzNhBmQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+VQne2lbyafF92iYBoIRJ7IVFdARW2GwqUKGPlRXjgQ=; b=EF6u/aOn8AzCWRiyffLpuniNseRJ35A9eyky4865pBMHEFV0KUxyh8gyC3kucYX3xn VPavseQqefhT3MSpulImItvWNntEQzzNHjYuVDBSLQypuAhyok9qrmW2OW6uLxjcI1PB SUcPY8gvt9HZbpb5z5eLWZ/dePRO6HytUFCItdDMIHWmpxqcnvCXFzVX7jeKhKt6he7+ JUsYNhcIzprAkFmpSrVNXvNW0PAVkaZbK7ecpcESNQ7S5K73HXSDogtoSnC7bmLEKdcU HobqJVsA3HVtbebNCt5wXAGOfz4V34fht35cvcmfFrUQ/S6XbZOrmtZQ8FLJGALIG6X6 hIbA== X-Gm-Message-State: APt69E0AoBcHJTynS0I5w4MFhAjC1jNI1bs7OfRJxNxcaUwAnzVmCuML 8uIR6uBDn2KaykumWbnl29MpAw== X-Received: by 2002:a1c:2807:: with SMTP id o7-v6mr4537038wmo.11.1529580434879; Thu, 21 Jun 2018 04:27:14 -0700 (PDT) Received: from [192.168.27.209] ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id n71-v6sm7177568wmi.14.2018.06.21.04.27.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 04:27:13 -0700 (PDT) Subject: Re: [PATCH 3/3] hwrng: msm - Add support for prng v2 To: Herbert Xu , Stanimir Varbanov Cc: Vinod Koul , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Matt Mackall , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Vinod Koul References: <20180618141259.23141-1-vkoul@kernel.org> <20180618141259.23141-4-vkoul@kernel.org> <20180619142853.wgi5easw4zv6ttrb@gondor.apana.org.au> <966e9cd4-70a3-8d54-df0f-16df3df45fb5@linaro.org> <20180621101506.rnklbtapvfdev4xb@gondor.apana.org.au> From: Stanimir Varbanov Message-ID: Date: Thu, 21 Jun 2018 14:27:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180621101506.rnklbtapvfdev4xb@gondor.apana.org.au> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Herbert, On 06/21/2018 01:15 PM, Herbert Xu wrote: > On Thu, Jun 21, 2018 at 12:56:34PM +0300, Stanimir Varbanov wrote: >> >>> Is this really a pseudo-RNG? If so it needs to be moved over to >>> the algif_rng interface. >> >> Despite the register name (PRNG_ registers prefix) the IP is using FIPS >> approved algorithm and we can claim that this is true hardware entropy >> generator. > > Whether your RNG is a PRNG or not has nothing to do with the > algorithm you use. No algorithm can generate entropy out of thin > air. OK, I just wanted to say that it is _not_ PRNG and the register names gives us wrong impression. -- regards, Stan