Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1523487imu; Sat, 12 Jan 2019 01:58:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ZJLuFZ6pM2rSvyUTFS4PpjHqqxLhMyADsCvW8116+a2YGQngcu1clVOBp1PiIJ/fF/Qqa X-Received: by 2002:a63:111c:: with SMTP id g28mr16145328pgl.85.1547287111457; Sat, 12 Jan 2019 01:58:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547287111; cv=none; d=google.com; s=arc-20160816; b=zokF1rlwh/U+ZkgN7j0OBgDs7102AV8nUpWx4UhzEcEWcCFAR9eDGdB7OSwS4tbIF7 akwqm2i0XGLyqZMGdfspZ7cKvf0bIu03iD18LWH3DwpOHOIGxeadiP9mecAELV0upDdc SbVGsICGx1xvv+mRTrXuHRDkIjJSeabDlpS6ZFiijhGl1lGVs0j5/8Nd2w8O/+VSuAFv InLOKFvqm3QTJc4lkCtLfOhn1hNpCg/8VAf5oL1+8JXsFD+GXHUeKk0rVGvxt9idRYWF PIiyDCqf8G5wNcyoJz7Q4g/aRkZMSZ07cxY7bdaZHziOdzWU9kgbzh+A6fgTWyS8ELxc N3GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=EGYBljauRP0mOHQqoF41dbIPcOIF1v4fcVnOUos/YoQ=; b=ttkdhTKxc44OMCjAX7G6F8PjjJknw+owqDcSGFMfnpK2XEAcZ0Ij4H16bFVPWw5H1f KTVJQJOJQaoC66+r2HU7Y8215z5xN5NLbRuRfJDGAnMwAlyChjJWLTqa/sje7Fxldbzl yFozVAdHx3gFE7rjSsymakOoaOV3P1ehD70+JaZDbrch+8qLqi/hcldmIblwr1nQ/Gl2 gCeinTUhl6vsEYJ2dcEF9KdBk5nLaakPSEhZ8iZNapER1Nuai/aldGHox6YCnd5D86kK bVTPq5GEImJBW919mhyujuY0Vh9gzn3Ni+/T9/NU/pmbQeo23JQPomI+V8t+t2tC2qAc Ri3Q== ARC-Authentication-Results: i=1; mx.google.com; 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 x186si22922160pfx.269.2019.01.12.01.58.16; Sat, 12 Jan 2019 01:58:31 -0800 (PST) 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; 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 S1726643AbfALJ4e (ORCPT + 99 others); Sat, 12 Jan 2019 04:56:34 -0500 Received: from orcrist.hmeau.com ([104.223.48.154]:36280 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725816AbfALJ4d (ORCPT ); Sat, 12 Jan 2019 04:56:33 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1giG16-0004BP-FG; Sat, 12 Jan 2019 17:55:48 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1giG0t-0001Ye-PR; Sat, 12 Jan 2019 17:55:35 +0800 Date: Sat, 12 Jan 2019 17:55:35 +0800 From: Herbert Xu To: Eric Biggers Cc: Stephan =?iso-8859-1?Q?M=FCller?= , James Bottomley , Andy Lutomirski , "Lee, Chun-Yi" , "Rafael J . Wysocki" , Pavel Machek , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, keyrings@vger.kernel.org, "Rafael J. Wysocki" , Chen Yu , Oliver Neukum , Ryan Chen , David Howells , Giovanni Gherdovich , Randy Dunlap , Jann Horn , Andy Lutomirski , linux-crypto@vger.kernel.org Subject: Re: [PATCH 4/6] crypto: hkdf - RFC5869 Key Derivation Function Message-ID: <20190112095535.36rh3ptnrf7yxacv@gondor.apana.org.au> References: <20190103143227.9138-1-jlee@suse.com> <20190109082103.GA8586@sol.localdomain> <9733066.Vrs4h5eWcW@positron.chronox.de> <2423373.Zd5ThvQH5g@positron.chronox.de> <20190112051252.GA639@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190112051252.GA639@sol.localdomain> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 11, 2019 at 09:12:54PM -0800, Eric Biggers wrote: > Hi Stephan, > > On Fri, Jan 11, 2019 at 08:10:39PM +0100, Stephan M?ller wrote: > > The RFC5869 compliant Key Derivation Function is implemented as a > > random number generator considering that it behaves like a deterministic > > RNG. > > > > Thanks for the proof of concept! I guess it ended up okay. But can you explain > more the benefits of using the crypto_rng interface, as opposed to just some > crypto_hkdf_*() helper functions that are exported for modules to use? I agree. I see no benefit in adding this through the RNG API as opposed to just providing it as a helper. If some form of hardware acceleration were to eventuate in the future we could always revisit this. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt