Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp968877imm; Wed, 4 Jul 2018 09:03:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfILRyuCmtuxsJWjfgzmbRfKB+l2BJ1Q/Pq2qbsFv8qDUW39LwVaJPdPtrnrMKx73Sm4iLS X-Received: by 2002:a17:902:b612:: with SMTP id b18-v6mr2653297pls.131.1530720207924; Wed, 04 Jul 2018 09:03:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530720207; cv=none; d=google.com; s=arc-20160816; b=B4ors6jFd27Zvv/T4P+6bknibrNwqoMfT96KNNqwfX1O3JJu6W6MaH8ZrpiCFiRLOa katmtsJD0anolWl+BsiZjDANWNawXhBsiLe3UcRRZTf3A2dvi5YIN0TFx8pkuQsCd9Wj xCNT4Vk+qhDtRf+QwR8ce7pHuB8x6k5+Xb6KEiyTcVmlvWtotgpZ/sDQxLO1NtwS7cE5 zy2Z47/WGuZdIH5oYQFUSkCHhGjdacj8Y3P6XKaLNJpKzOA5EWEGZ6XWWCRR15s56CYv lQcTL+vY8it/xSQ5Qa3LnHoScZ6UpqywJK+1GNyLxatY0VITnX4W2ygd4+Nv0L3bIVFv Qeng== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=mB4pAmMghSxnrZeovVb7zCicOmTH8rcry9VuO7p2MLI=; b=GPGU6V0Cazn8J9uTNmy+wkhLDv9sQVy7SOHIWwCi/Yj+mHbCZlMh+GDZgFC8Imdard wVSrOD4GPqh+zYSOC1WCoulpSfPmJBSfWaVD4sL61/edAcmJ6Uk0cE2vbTBj5jtHROaO qPBXhDiKvkY/m71NKXd6iNnSN4sd+RADv0I8O3mZQGRM/+hQJX0T76KZC7DWLqkcTQEv YQTQAzMsZPiPL/vEg/2XVVKhV3BGTtoFnvIYJCTwLRExfj49akw6sQI8BPh2fxleXwhd 87H66ROvQ+5w9/Aro3tZ0eSYZMLww2acgaR+3pVTJ0YQLvvbi2aW8Zk9bZlI+YT4bHFu BrmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chronox.de header.s=strato-dkim-0002 header.b=oeqvjrAh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7-v6si4002664pfi.96.2018.07.04.09.03.13; Wed, 04 Jul 2018 09:03:27 -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=fail header.i=@chronox.de header.s=strato-dkim-0002 header.b=oeqvjrAh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752921AbeGDQCb (ORCPT + 99 others); Wed, 4 Jul 2018 12:02:31 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([81.169.146.167]:32009 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752399AbeGDQCa (ORCPT ); Wed, 4 Jul 2018 12:02:30 -0400 X-Greylist: delayed 95643 seconds by postgrey-1.27 at vger.kernel.org; Wed, 04 Jul 2018 12:02:29 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1530720145; s=strato-dkim-0002; d=chronox.de; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=mB4pAmMghSxnrZeovVb7zCicOmTH8rcry9VuO7p2MLI=; b=oeqvjrAhc2xLKgB1O16VEgNedfhu1j62/Ag/qfHc5aR1d9hZchNV8F73+x/fRX6dWw cwk+bbfLBcaQUdsvNRapjjEFTwK4XBGraCAeRyCjxq5Qwr1fTVqr4RIYjweosLygjXhj AwrJ5k294LOS1WXMNzCThFxJxMj9phsVtCtTe5vfdqP4FSrEy1WUe/YrYZhtLs0w0//1 4JxUojk4vDKe4tHqjGtlAFQ9km22u4qOva2MnqbdA3002E3pA0xU0v7gnSoeGB4VhMyB sY5mixmocy3SZbn9uGFzidvegyRjxg3/x1GQQmHUkRDOMO4w2AJTV3r78lre9NKLR7nD p5wg== X-RZG-AUTH: ":P2ERcEykfu11Y98lp/T7+hdri+uKZK8TKWEqNyiHySGSa9k9zT8DNpa83PTIZWvq/+MyXt/DL7RMJdiLJGyP6DV1aaeuWHpp71U=" X-RZG-CLASS-ID: mo00 Received: from tauon.chronox.de by smtp.strato.de (RZmta 43.12 AUTH) with ESMTPSA id t07687u64G2514U (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 4 Jul 2018 18:02:05 +0200 (CEST) From: Stephan Mueller To: Vinod Koul Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Stephen Boyd , Timur Tabi Subject: Re: [PATCH v3 3/6] crypto: Add Qcom prng driver Date: Wed, 04 Jul 2018 18:02:03 +0200 Message-ID: <19909549.EUeuX9KOs7@tauon.chronox.de> In-Reply-To: <20180703060434.19293-4-vkoul@kernel.org> References: <20180703060434.19293-1-vkoul@kernel.org> <20180703060434.19293-4-vkoul@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, 3. Juli 2018, 08:04:31 CEST schrieb Vinod Koul: Hi Vinod, > +static int qcom_rng_seed(struct crypto_rng *tfm, const u8 *seed, > + unsigned int slen) > +{ > + return 0; > +} One more question: is it not possible to mix in data into the DRNG? I thought it would be possible with the Qualcomm DRBG. Note, I am asking because of my /dev/random drop-in-replacement implementation, any RNG from the kernel crypto API can be configured to be used as an output DRNG. Though, this will only work if the DRNG also accepts seed from the software noise sources. Ciao Stephan