Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5804669imm; Wed, 12 Sep 2018 11:21:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYH1IO+2ynnXvgc/jKTUw+EG86ehlasnSq5ziDOz7TXP/2s3yuFrlfEPw5mhQ8/NzsKt0M3 X-Received: by 2002:a17:902:6b05:: with SMTP id o5-v6mr3707002plk.338.1536776480730; Wed, 12 Sep 2018 11:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536776480; cv=none; d=google.com; s=arc-20160816; b=RwqxgE+yaXAAZssMpJKBbED6jJL84xnGo9qItv+z1AftL21yaaVCOY1ARyFDawVBMe mSgRX467tfXg46X3gkPuc+RH3yQRp8i1jjECLmPTLX7I27d+kVUZFGJIFHim+dNIh4jP /S2cjqzd1yWHyTyf+M9hN+vaNSEuiPjb46y5ruZan2vEfHy9fHHwUHg2Xv+6hQ4nIxXT T7KiffcRwqi5g7zLLwpd3iL6giK7WfRVO55EkI5X5EsBcFlknQq6gL64hHfKCRaQOYx/ UFISHREjXuFv2rRPrLIFpnIkre2iL9Mjnvrld3W9ni3vARbbIwqoTWu4cTv7jsMg8dkc 3TJQ== 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 :references:in-reply-to:mime-version:dkim-signature; bh=vVYZmYDQusgs5WEVYlrHbZm15KeJNj+KqWke29rz0Yo=; b=Z/Ev6aN9yJCmPVP0vLk4z+IdiwrW3IiucOTHn47eVngTWLwiZRvG5g6qx4hWy6DXcd +Lm8RxH6PataUfbT6jb6OT+y++MqlgnKDQpqF/sTI8FdH4odmmMj4haEjtm1zkrPOgw1 Zj8rlRR3DrerQElmeK9XQ1SmB7DgFgTsUd7fKR6SxsnfQUNyiACwm52bT/luqqwQWuSW CT/Cb7EnspqYrwzfhfFoG8X4BaLYqas51Ac9zEwh4e4QU2c5StZq0huLAEsZopK33W2r yRVXRxsaH1iWl/h2qSS6qPFpCNTXcH/3Nw/o4cjYMTfpUC5gm4tyXuNSCScadXkp7/BU WIsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OZMlMigM; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69-v6si1797274plc.388.2018.09.12.11.21.04; Wed, 12 Sep 2018 11:21:20 -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=@linaro.org header.s=google header.b=OZMlMigM; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727673AbeILXZF (ORCPT + 99 others); Wed, 12 Sep 2018 19:25:05 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:38452 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726675AbeILXZE (ORCPT ); Wed, 12 Sep 2018 19:25:04 -0400 Received: by mail-it0-f65.google.com with SMTP id p129-v6so4353293ite.3 for ; Wed, 12 Sep 2018 11:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vVYZmYDQusgs5WEVYlrHbZm15KeJNj+KqWke29rz0Yo=; b=OZMlMigM6Mvsbl2TYqagohiWLeK2VOADJD9ggMPnEW7m5cPQTVr4nCXYlZIWZBjPTG LNrCysyX78Qp9z0jPnp0ND/Vv3UmUd7YOvkMqHZZeE636kMKGGGUAbge6vmfIVfvnOVp gVfaebjDQkj0eDx1pXOba+6jsZUkMR6kvqhIA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vVYZmYDQusgs5WEVYlrHbZm15KeJNj+KqWke29rz0Yo=; b=SzRK+8vATfgd3mhSLsl/SiJRLuvcUurW2Btub2JL75h8WrLWxNFo2ZMgaF2dPex7GO lKEuXzI0iavfw9KvusACNFEgjHV3/plmOdDjXKp9C8k2GSH1zzFdTMorQXRDz8ZXNxtJ xPnub/rMs1JkSxTEqj3xQon3VoExKCcXTTjX/UQ6CpoNMGTIImgAy07hvccVR8MRFv00 cG9o2bS0CReRbqkinwiylbOaiASelktmdGf+vjOuUop7aLjb2jjCCRxcxeMhMwvkG3fr 1lxLhf+N6lsDG9HcRvyLeL9cvYYFWhx79sU0NmmJCu2YNOrKMGdZAVzlG6EFCcf93sEe zzOw== X-Gm-Message-State: APzg51D6P/IHzAf88xMHfGczwylCy0vrWfvY2jUedNi+bhCH+uCygQS8 uuFnJhNb06+1JGlxGUGCRABdKmbtbIfsD0JMzB00Jorp/YJ2ow== X-Received: by 2002:a02:4d1b:: with SMTP id l27-v6mr3152445jab.86.1536776361824; Wed, 12 Sep 2018 11:19:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:2848:0:0:0:0:0 with HTTP; Wed, 12 Sep 2018 11:19:21 -0700 (PDT) In-Reply-To: References: <20180911010838.8818-1-Jason@zx2c4.com> <20180911010838.8818-3-Jason@zx2c4.com> <20180911220849.GC81235@gmail.com> From: Ard Biesheuvel Date: Wed, 12 Sep 2018 20:19:21 +0200 Message-ID: Subject: Re: [PATCH net-next v3 02/17] zinc: introduce minimal cryptography library To: "Jason A. Donenfeld" Cc: Eric Biggers , 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 On 12 September 2018 at 20:16, Jason A. Donenfeld wrote: > Hi Eric, > > On Wed, Sep 12, 2018 at 12:08 AM Eric Biggers wrote: >> I'd strongly prefer the assembly to be readable too. Jason, I'm not sure if >> you've actually read through the asm from the OpenSSL implementations, but the >> generated .S files actually do lose a lot of semantic information that was in >> the original .pl scripts. > > The thing to keep in mind is that the .S was not directly and blindly > generated from the .pl. We started with the output of the .pl, and > then, particularly in the case of x86_64, worked with it a lot, and > now it's something a bit different. We've definitely spent a lot of > time reading that assembly. > Can we please have those changes as a separate patch? Preferably to the .pl file rather than the .S file, so we can easily distinguish the code from upstream from the code that you modified. > I'll see if I can improve the readability with some register name > remapping on ARM. No guarantees, but I'll play a bit and see if I can > make it a bit better. > > Jason