Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4670247imm; Tue, 11 Sep 2018 16:01:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZXpimWPHrRgm68Cd29dbmBhgKAZguN4cZG8v6Nwd7+ar3K3pu9y3KIYkz+xpU9rWwedBms X-Received: by 2002:a62:7a01:: with SMTP id v1-v6mr31633900pfc.153.1536706904293; Tue, 11 Sep 2018 16:01:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536706904; cv=none; d=google.com; s=arc-20160816; b=KwTlawS1yI8Byp1yToXETplwPns5ISXRPOKdBWZiiWlwetJwNO707kvwhA8tAZPEBC 22rMOfwnhDZ5fuOgDBZAPNXeK2sl6NajyhUl9DjftdHgCJaBCoT5gtmGMSKCjgXgI4lT 43o/lTq73vAquRTMWkYwceXKzHg7aDmyFHxXwDL0wwCWXM0OXn0utvcgH1CGcj8C9KHR Q0Fb4q28Fbe0vjyLLg/84++eDcI9c7ZpHNTbTdoC0bSUosiVoHdp4TofdejLzEfor/W6 SeY/96ECBDZ3hsmo6d4mgLftN/wzL89DpH1lImScuNiplaliE0ALwt+S+8AI6kMOGH6o a2QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=YrSYa/2yjcAWd2Sa2WXRg1IT45FqYdZx2smgKFAAn+U=; b=h+crDGMitmonwmRDRY0gtzJGO0tQX38hpa78+fiMmMlsbwHQldSrK+/FyT8Ez++zwD V/8HyNQEuym0fTpBliueH7igG1FW77ImbzihIk/DfkVjMlKjCTMQxhjt7cSyOJjFQ/Px ifNnR8oFbYi6YS7WE/681v7MHu1yOMEXtXzAtp9Niagr6fcBRhJGLR6FwAezUFThDeFi t9SO6NXxI0IHEOVmeHg5Q3dJu1PSZLiu5+9eaLVBJ9HAS8VlT6xen68HB+FZnKG2bPpo 7eL6/+xzV+UI4bDKPlA4wRyHG9kVcdzollE+rnzB9viIm1JQZIhfJsyarATb8Ub3MXzV bMWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=g1usjAYK; 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 b1-v6si21969886pli.54.2018.09.11.16.01.29; Tue, 11 Sep 2018 16:01:44 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=g1usjAYK; 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 S1726176AbeILECx (ORCPT + 99 others); Wed, 12 Sep 2018 00:02:53 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:39025 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725740AbeILECw (ORCPT ); Wed, 12 Sep 2018 00:02:52 -0400 Received: by mail-pf1-f194.google.com with SMTP id j8-v6so12947444pff.6 for ; Tue, 11 Sep 2018 16:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YrSYa/2yjcAWd2Sa2WXRg1IT45FqYdZx2smgKFAAn+U=; b=g1usjAYKckwytxvPf7k+WplL8BDCFvRXfYdc95RvBz4ocYWJVFf8pruXWvgKwuq7E3 mzDF2w9RD7OohLhEmTK2fM1++jOXKx5bhgOYyBgrBNh0LWANY4eRWYtf05G1A01gb7Ab e3eSa0NOb96EIClvwXs8znW6RjmndYFzzPn49bbDO7mHaKFm0szr++oHIc5c71hHsjJd MAiQ7NEPLyfC8zev9zihfos/9E2HzWU0o0KUbbyTzSd//y8T23mhS7nRdN61PXUiOxEV jkxPfq4bgcpeMQ1EOoQ+Gj/qXyr6uAhZqnoJYmXXONZmOPOC4jcGa4Mv8LYjnYNROgQG Q6Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YrSYa/2yjcAWd2Sa2WXRg1IT45FqYdZx2smgKFAAn+U=; b=CckofcR10eLg1i9WGgztI6iGN0Mo10IOpYDM/yY5J8vGgrMnYu6jXmF+bPhyN/cTnB uBPyeGs2kc27xZgyiMuzpOk4FIMCvp3s3LlY5qvzfhiP9OfylEx7FSVUFwOtvH7WlhQe sGhaJN7G1OcJBp40TASGIy1Mfx6qJW429atgkbn04BSxWJaLsLtMQX1GYK0jAEYBqQYt ZSUPMC7bVrhpjT1bKfmkEx6PH6vjfKLauzJLDaxqzAW+6mQl3Tx+M+XvDx7OicRLn6u/ y3yHDYG1e8j0MomTZL7VzAgeg9kSvT3Q0uGwUwxGkkAzTYI6eBse2R9jVfKbWRm5CgEW IEoQ== X-Gm-Message-State: APzg51D6O3/Tsf/UyueOrXmanz6T8pcFipeYqJ2itXfc9o3i2tDqjup/ nD16KoRIk+k0FlOPHIvNKsYimQ== X-Received: by 2002:a63:d150:: with SMTP id c16-v6mr30865254pgj.188.1536706882058; Tue, 11 Sep 2018 16:01:22 -0700 (PDT) Received: from ?IPv6:2601:646:c200:7429:c031:82db:734e:842e? ([2601:646:c200:7429:c031:82db:734e:842e]) by smtp.gmail.com with ESMTPSA id y128-v6sm28800152pfb.56.2018.09.11.16.01.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Sep 2018 16:01:20 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: [PATCH net-next v3 02/17] zinc: introduce minimal cryptography library From: Andy Lutomirski X-Mailer: iPhone Mail (15G77) In-Reply-To: Date: Tue, 11 Sep 2018 16:01:19 -0700 Cc: Eric Biggers , Greg Kroah-Hartman , Ard Biesheuvel , LKML , Netdev , David Miller , Andrew Lutomirski , Samuel Neves , Jean-Philippe Aumasson , Linux Crypto Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: <2E01FBB6-030A-40AB-8BEE-F8F271A57568@amacapital.net> 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> To: "Jason A. Donenfeld" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sep 11, 2018, at 3:18 PM, Jason A. Donenfeld wrote: >=20 >> On Tue, Sep 11, 2018 at 4:16 PM Andy Lutomirski wro= te: >> Jason, can you do one of these conversions as an example? >=20 > My preference is really to leave that to a different patch series. But > if you think I *must*, then I shall. >=20 >=20 I think Ard=E2=80=99s point is valid: in the long run we don=E2=80=99t want t= wo competing software implementations of each primitive. It clearly *should*= be possible to make crypto API call into zinc for synchronous software oper= ations, but a demonstration of how this actually works and that there isn=E2= =80=99t some change to zinc to make it would well would be in order, I think= . IMO the right approach is do one conversion right away and save the rest for= later.=