Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4724892imm; Tue, 11 Sep 2018 17:02:45 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda0oX8k6K5XsYEk0yrFRtYLuYpIxu7NPiiWIHiAx2cnpb60ayNF5tevwm6nj8ZW6Sabw6Mi X-Received: by 2002:a17:902:bf46:: with SMTP id u6-v6mr29654178pls.85.1536710564963; Tue, 11 Sep 2018 17:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536710564; cv=none; d=google.com; s=arc-20160816; b=hOHk5YvXq2eCFH1rrhbsq5hI1jJd8P5vEnMeFzXye8PoS83Jjja38rr8uQK1fHM7bR uw8wMVbhfkf/XiuHNd9IYv6Gmt3VMmTsPwhveCdg2AnBH/0QoPx59FBlw6+yeWQEtvHs U+eieicPvgt/r2QNwbFOsSUit6Dw0AA++HsCW/22l4fFigNdQ6Ek9U1z6tpFI+Wvtnli ObF/1cSous41Vv9FcG+9qwEB8xRXIz1JSRwggc66bOA163Gpe1Yiu79HDCT/U1h9J13T Kbl6Ev2pBaaIpdLMtu6hK52OsHUc25Wpa1oldUDqenxLTjkpxG7ko18IvvkCF9t6s5Wb iveA== 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=dk4kBh5aafgx/4eRlo4UBQ1QKy4FWwjL/6B8s64xRqQ=; b=J86qq0x87TgF+ClwLPBW/dAD069sq47RiOJeziwstH4fYEraSwzps+Zx1DXHvo3tBz rJ6bclunDCaOgD6+FNdh/E7LMMTd17p0vzEOo4TBfTMH8uC3L8QQf2qIrFBojrGE5xt+ JKxbAEziP3qUylwtMHxxZTLghRZvIQpLWpEr7GjDS/XewRHYS0D6kOvETLCe7JnhDmAO 6gDdUC53QBl2/X2V4HLMiJ1cDU0YHCL38ieEBFRfp8l2JkxQd9Ki2tAxkcuF4OlMaIxs eDvq5lVhhJ2NRBnIlZwhJkrbJWS588DwzfxP4y9+uZsE9+llMVJgURSSRpAouHOiT4kc h+BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b="J/P/8y3Q"; 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 a18-v6si21057756pfn.317.2018.09.11.17.02.29; Tue, 11 Sep 2018 17:02: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=@zx2c4.com header.s=mail header.b="J/P/8y3Q"; 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 S1728011AbeILFDr (ORCPT + 99 others); Wed, 12 Sep 2018 01:03:47 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:36983 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725740AbeILFDr (ORCPT ); Wed, 12 Sep 2018 01:03:47 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 5360167e; Tue, 11 Sep 2018 23:45:19 +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=6JvlHkIYKM2h w+HMGOR9Du/TVWM=; b=J/P/8y3QxWZyJ1sX2Af/9Sk1nbtaYUfs76o6Qylg2IDL DhkX68bdo2oyOd1pB9BLyT6AhZXcdhw1F51Iz7oN3Tbowz9WCmxxkLsWptrvvpim gWo/6BmWmHvD/I4ijGN9MKZ4dbe3btOTT1KWGqTYSbNQSPPgJiduAScdvbjIEB1s HwLI/KdiMd8aVPZB29DNTWmmBuhYe/UcpXcB34zM4TI+OxGieW3q4CHvNY2l9L8S 4hpugWvHWrgoSeb3f0j0jYvGkIsBTBdOOcKuiaSkvRFHUIMXaGIqM2UEh94zRnRf 9AtGXkBmstZLkhd1XG4PxdrD7+bLAx5YxaZ6AyBu/Q== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id d77455d4 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Tue, 11 Sep 2018 23:45:18 +0000 (UTC) Received: by mail-oi0-f47.google.com with SMTP id m11-v6so229088oic.2; Tue, 11 Sep 2018 17:02:02 -0700 (PDT) X-Gm-Message-State: APzg51ClUejzmd1dJPzfUcfhsNRnIr+Kn08o+GWPWifrqXkUtSwMUDHs mr/4s6zR0ICwfb6zFjyVCBJC6BjTuUrshUBEUqo= X-Received: by 2002:a54:4f88:: with SMTP id g8-v6mr29882611oiy.191.1536710521303; Tue, 11 Sep 2018 17:02:01 -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: <2E01FBB6-030A-40AB-8BEE-F8F271A57568@amacapital.net> From: "Jason A. Donenfeld" Date: Tue, 11 Sep 2018 18:01:49 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v3 02/17] zinc: introduce minimal cryptography library To: Andy Lutomirski Cc: Eric Biggers , 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 Andy, On Tue, Sep 11, 2018 at 5:01 PM Andy Lutomirski wrote= : > I think Ard=E2=80=99s point is valid: in the long run we don=E2=80=99t wa= nt two competing software implementations of each primitive. It clearly *sh= ould* be possible to make crypto API call into zinc for synchronous softwar= e operations, 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. Alright, I'll go ahead and do this for v4. Thanks for the guidance. Jason