Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4927823imm; Tue, 11 Sep 2018 21:32:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZDfDspdViQg4FWyNCcY1TawQT/oyiD7XqER/7a+lz1y0oETiYJMS0SPCEPON45Iey0X24+ X-Received: by 2002:a63:986:: with SMTP id 128-v6mr23364pgj.153.1536726760792; Tue, 11 Sep 2018 21:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536726760; cv=none; d=google.com; s=arc-20160816; b=c9uhQap43J7lQKoMV1qmhGa8W3YN83q1PzNFF+XM4cyUTrtfnsj+F3n/JoeOz0TWKv dCP9mBzMmtzT9El8blvaUnuIVa7EM8z/r86GCDazlCitwz8GYH0J84QJZSqUGr5rw2pa Hp+tvQTVWocB+eU1SdMxEE9+limxKDQYDrX7SiDp7WnvtDMDZFFGwyRSlMBp+RPzZTDP 78ZE9jHIy2NLgXUSnsmhfEe5vIySEvchtWi0Fhyfvc7wv75x/OLmbzlC5+ZJ/cwhi9o7 OEGNWrSPGBwWYK6ZBVwc4bReS9Wy98Go/zw1RkjLKt3Efty4d8FDzOaDQNM+ERq4MGWW 9BCA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+SBLQrqK5pG/oBl17oziOMI0mvRcF1blgSVvl4vciL4=; b=K7sk/Xhu6c0sv6EIe7NxCjNdCqMIikIxI7e6RNswuLTcjQfGD+dD87h4c3YOMZxQ33 dupCOOBKvUuMZ96eUJUmkYqT+qxFG1cT+6UNlHJiUV/0ENpHKtSTz+hX+Ua5NSqvobC8 wdL5+MXaGdqwq2JIuSh+Oo1BHgNZxpau9hPSew29VmeFmK68hflmjHyU6ihhPAppS078 AwbdwLahD5uJkwq7ES1l+5fUP79yDpYsBE7mlcb/tlvdKS12oMy8APKGs8A8X/UbnWGW dNKGQyrSblKLTVYMtXFc4PI7AzPm8+KsVZZQD417La1KzOBZDwyBgdKQiNgNDa+wykBN n+Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=RiarUkEF; 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=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k193-v6si21743363pge.4.2018.09.11.21.32.23; Tue, 11 Sep 2018 21:32:40 -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=@zx2c4.com header.s=mail header.b=RiarUkEF; 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=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726454AbeILJez (ORCPT + 99 others); Wed, 12 Sep 2018 05:34:55 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:49115 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725738AbeILJey (ORCPT ); Wed, 12 Sep 2018 05:34:54 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 26c689bc; Wed, 12 Sep 2018 04:15:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; s=mail; bh=S6ANol2e2m77 gIN6Kn+N6c5BFyk=; b=RiarUkEFHb1JeimEq1I3rZb4p02QTaLcFrv6Tfav3C5f XFVzHJ6ca0IAJin10DBS73kbB+i47Z6LCQKV9hZ79Lees09a595+KpWOcsHAP7xc SiFbk5YESJodcZ8FmffrLHPtlHF4JPBRVxfn2esDxuJ3NgDSHkfOY3/VJfI8/e/i EvtkiNx8c/jDOZa3ZuyBFdJBGBsGrJcVqLvjooCxaBG7lDGOfrU6eoLeWgSggGMI OfACXtzuw20WrKw6TCQoiCEaVFDcANmDpSTUxNfFPXVdTxnO1G+AGGMXUi0d0bhy Rrdpj6l6LlF0wcoMQGgvHUBRxdP/7T5SQk2UDS66ig== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 9932cd4c (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Wed, 12 Sep 2018 04:15:28 +0000 (UTC) Received: by mail-oi0-f42.google.com with SMTP id b15-v6so1078418oib.10; Tue, 11 Sep 2018 21:32:13 -0700 (PDT) X-Gm-Message-State: APzg51AkMfyW4WBKBXabKPZzxrQNlp1oqcJEAWej3mrIW8AvO9YVxkw4 RK65MSmKkZsugXQTMh+T22ZwEnH9fPTZRAhZZus= X-Received: by 2002:aca:dc82:: with SMTP id t124-v6mr22038oig.189.1536726732658; Tue, 11 Sep 2018 21:32:12 -0700 (PDT) MIME-Version: 1.0 References: <20180911010838.8818-1-Jason@zx2c4.com> <20180911010838.8818-3-Jason@zx2c4.com> <20180911145624.GA21635@kroah.com> <20180911214737.GA81235@gmail.com> <49BAF465-B3DC-4155-BFF9-DB6C386C1878@amacapital.net> <2E01FBB6-030A-40AB-8BEE-F8F271A57568@amacapital.net> In-Reply-To: From: "Jason A. Donenfeld" Date: Tue, 11 Sep 2018 22:29:34 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v3 02/17] zinc: introduce minimal cryptography library To: Andy Lutomirski , Eric Biggers Cc: Greg Kroah-Hartman , Ard Biesheuvel , LKML , Netdev , David Miller , Andrew Lutomirski , Samuel Neves , Jean-Philippe Aumasson , Linux Crypto Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eric, Andy, > On Tue, Sep 11, 2018 at 5:01 PM Andy Lutomirski wro= te: > > I think Ard=E2=80=99s point is valid: in the long run we don=E2=80=99t = want two competing software implementations of each primitive. It clearly *= should* be possible to make crypto API call into zinc for synchronous softw= are operations, but a demonstration of how this actually works and that the= re isn=E2=80=99t some change to zinc to make it would well would be in orde= r, I think. > > > > IMO the right approach is do one conversion right away and save the res= t for later. It turned out to be fairly straight forward and quick to do. I'm on a transatlantic plane so the connection is super spotty, but you can check out the three commits added to: -- the two "crypto:" commits and the one "random:" commit. Alternatively, you can look directly at and . I'll be refining and checking these over the next week or so, but the basics were super easy to do. Jason