Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4583409imm; Tue, 11 Sep 2018 14:22:55 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda01DCKd7s2hIhA5yA5iszzfV/OhL79M/OpKdLBX58tFJZpRGstTsGZ8u85EllLHAuRfsqn X-Received: by 2002:a63:d44:: with SMTP id 4-v6mr30718756pgn.107.1536700975512; Tue, 11 Sep 2018 14:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536700975; cv=none; d=google.com; s=arc-20160816; b=snlZCqCN2W/tpsrWHliWfTXgcfhiXGdO8LV3uvgo0obbj75LlVbubFeDiL5+RNa7dt boZYMVf1msZxfiipWbHLOgV+9guiequvvQ9a+/MZBU6BnJQovSc7kg/X+kAy6Lp/BAD5 KDcnjHr56ZYF2IUmU139aT6A9ozQrWSOXfmAXJ22hyzTTKhqwmmunL0y8Ykp9EnsZ51+ mcdNZBTo1D+vBv2bN9+JDB0zc5nfOh5sFKQ5aRtVvwIY8VRWv6LB9YQZw9dtZBWbOgnO HuP3FTBD6MI54laSG8RYuwmURpIJ85QXpFJ/qrWflVy58yl0UmlbrLK50aBTo3zOtzIL gVwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fDqDkX6n1uKkzRvLsJj0zBNUvMMRbk8rB48N91S4kDo=; b=vONbEsu81jJVlt3k+o+2LEp3BHP6pxJHXOLBhrrFslrJR6ioJ+5YWG2k+EAnpOrdAo EmFxFX3b7GrpKIaKznLg+mZY0C9IGJo3EsHeAuiTrySW2zk8GKX68DXviknbPe+M/mql jDOU0oh01XzOCC2CU4f8uZsv4KbA3/BPuwM/3ToSJ8wFHVh+mG4AHpYAXnodXHdJMhZL MZV5p0S7uAzUMz+E9RMwBfV/MJ4paSlI/V0ZkMPTNeJkbBA54Vi5UX9lQ/ujKbfUKy6R tL5fcjdeevf2pngQdQAKc3dbcJOj0OszL54kuSdG0SNbqyVD3VZKPR/Rz4rg8xTEw07u fblw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b="yj/oQ6jw"; 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 e21-v6si20852810pgb.131.2018.09.11.14.22.37; Tue, 11 Sep 2018 14:22:55 -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="yj/oQ6jw"; 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 S1728057AbeILCXl (ORCPT + 99 others); Tue, 11 Sep 2018 22:23:41 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:49811 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727161AbeILCXk (ORCPT ); Tue, 11 Sep 2018 22:23:40 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id df10649f; Tue, 11 Sep 2018 21:05:45 +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; s=mail; bh=NCxkzguwvgNyVDMfTb8Y/xrfzR8=; b=yj/oQ6 jww7aGkMPo95ECfYgTX1QmnK0fn/0j9/tpnHDPSGAELxY88kRECeN84rj+mu8jUY YyJke+xL8CuXSwJqlQfWxj+fDfmOFiXhUjUM5D0OYVtPSQ39dX7DN8NsU2idfYK1 5fMzKgFybt2vFpveZKKr/368xWO9N6m9KDY2fZKQC0UkmONSsqaq/3gwx1dRHn1P sY+SZfIeqzSED0vv2ifB2t7Z+bzohG1D4wukLmS8QfqI97qgKzfQ7JxxctzYW8YQ 1vNzaVQ7L60fC8KswcMnl1/3/Tgsmc7WEZNvUATQCV1Ex+HpHNzCkb5iX5FBQfHV u9ExNXEbRAs1EyAw== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 97e6da18 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Tue, 11 Sep 2018 21:05:44 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id t68-v6so50062751oie.12; Tue, 11 Sep 2018 14:22:26 -0700 (PDT) X-Gm-Message-State: APzg51CZqetJgG0L8y0cnEI8MCodn4Oem/vwvNqLI6x0ee+zeI5oSM6M /Ih1WCIZqLEAHO9HcuVGJU3F+XDdgs2e6lI5zhw= X-Received: by 2002:a54:4f88:: with SMTP id g8-v6mr29331955oiy.191.1536700945834; Tue, 11 Sep 2018 14:22:25 -0700 (PDT) MIME-Version: 1.0 References: <20180911010838.8818-1-Jason@zx2c4.com> <20180911010838.8818-3-Jason@zx2c4.com> In-Reply-To: From: "Jason A. Donenfeld" Date: Tue, 11 Sep 2018 15:22:13 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v3 02/17] zinc: introduce minimal cryptography library To: Ard Biesheuvel Cc: LKML , Netdev , David Miller , Greg Kroah-Hartman , Andrew Lutomirski , Samuel Neves , Jean-Philippe Aumasson , Linux Crypto Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Ard, I realize you've put a lot of good and hard work into the existing crypto API, and that my writing in these commit messages might be a bit too bristly and dismissive of that hard work. So I think in a sense it's understandable that you've responded as such here. But hopefully I can address your concerns. One thing to keep in mind is that Zinc endeavors to provide the basis for simple and direct functions to software algorithms. This is fairly modest goal. Just some functions that do some stuff in software. Around these you'll still be able to have complicated and impressive dynamic dispatch and asynchronous mechanisms such as the present crypto API. Zinc is merely getting the software implementation side done in a very simple and direct way. So I don't think there's a good reason for so much antagonism, despite a perhaps overbearing tone of my commit messages. Rather, I expect that we'll wind up working together on this quite a bit down the line. > In spite of the wall of text, you fail to point out exactly why the > existing AEAD API in unsuitable, and why fixing it is not an option. I thought I had addressed this. Firstly, there's a need for more than just AEAD, but ignoring that, the AEAD API is a big full API that does lots of things, makes allocations, parses descriptors, and so forth. I'm sure this kind of highly-engineered approach will continue to improve over time in that highly engineered direction. Zinc is doing something a bit different: it's providing a series of simple functions for various cryptographic routines. This is a considerably different goal -- perhaps even a complementary one -- to the AEAD API. > I don't think you have > convinced anyone else yet either. Please only speak for yourself and refrain from rhetoric like this, which is patently false. > Please refrain from sending a v4 with just a couple of more tweaks on > top Sorry, no, I'm not going to stop working hard on this because you're wary of a new approach. I will continue to improve the submission until it is mergable, and I do not intend to stop. Anyway, it sounds like this whole thing may have ruffled your feathers a bit. Will you be at Linux Plumbers Conference in November? I'm planning on attending, and perhaps we could find some time there to sit down and talk one on one a bit. Regards, Jason