Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5800961imm; Wed, 12 Sep 2018 11:17:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZE9qX8FfAx2d2DNM495xzyjH4VR33JVheM9FbZvx1bWeRqLlxKfxDamjciDln1Ij6l2rZU X-Received: by 2002:a63:481:: with SMTP id 123-v6mr3719630pge.129.1536776251965; Wed, 12 Sep 2018 11:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536776251; cv=none; d=google.com; s=arc-20160816; b=usLWBupwDyK+xvv9QIt+3TlQFzqEnN7oVHC8CsmtwkiTjSerxAC08AJkFG4vChI1YK Hnjyv+H4lNFfnU/pjQ6nTCzfD2Gc9aIsL0Q6uZgG1YpvNzZLuk6ClpA9CfVtw9HK6OJS Vy2vVXZCMx2s4evxYt34bHGSQE3wuMI87I0jSZlOCyyTCbM+3+KHwIXU3gmaMu2rMge0 5wCdLNpy33jvk6zQdiFWFDRddTjPqlbY1g1dqu2Dq06n0zzg4Gt4t8KwPkdBcaKj5nZN iQrXJ28sO1QDTln7ZpiJUtinQuOfDCHdX5XqAAVX5XLM9cP1olCYaYbxy/ICWXQetzrp +jKA== 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=Yxod/HRgQGBwA7nzBbtJ+znBy5xKmCUTZORvMfAF9kA=; b=GiZ4yCY8G+gTYG2zqsT7SMOvgRtIdJD+1F5Cc2169eXdMSfT1BZrtNGutyjYaZGwqE ooAJJhoETcbrnWr/fmvwde/cHikaRsFe89yCwf3cLQNx8qqDPHhmPaEFZI4KOZ/ALQuk AfuZBSpZ2OEBilu/5q15FF2DZpsVp26Wv+A3rxpa2msf3elemjAt1AR20lSwBzRDrAGe 7Tt+sqYWdaPWL8ztF8iWKdW5aNhtl/sRAsToZ+Xc8SX+T7cUaWHZELQcK14RsRrVbkcQ 9E4iQ75InUc+ae4M3Z0eMIuav8We60Um8O52z23NbVgGIeoP8OXL7OxU87b/ogKFYYJO e90A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=22FfCOBb; 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 69-v6si1797274plc.388.2018.09.12.11.17.15; Wed, 12 Sep 2018 11:17:31 -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=22FfCOBb; 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 S1728096AbeILXWe (ORCPT + 99 others); Wed, 12 Sep 2018 19:22:34 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:35837 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726675AbeILXWd (ORCPT ); Wed, 12 Sep 2018 19:22:33 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 3997b760; Wed, 12 Sep 2018 18:00:00 +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=pW2l5eTCxfnepjG4/hTF5qZPeOE=; b=22FfCO Bb+PEH2F1fuqj5SJ08xg/fJ9EykgvmBxYujQWjelosRXvTCX48BjJLI0E58dHMyO qJv+QrEUcldsQcP1M8qHOQAgdKjBiBryv8PEtRxCORGgP5W2+JtvzjRnimP0sK5A wRo61rr5nqvIr+cWaLgz8NN6VCU/GknjgQezsei5X7O+jaAdhteusS1xBipzUK3O P9lqZDURjLQtiu4AhHCHzBU7BtKlGKNaFbzItBXf9hl95JVyTeS1kMQJUO5ZunM6 8TcQI/sZROaX1woY4Kfx2W9wthP/kgqoHZcUHK2PSHDi31wmnkx7u3och8cFwF8K jyZandUNDk36Z+bw== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 097019e3 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Wed, 12 Sep 2018 18:00:00 +0000 (UTC) Received: by mail-oi0-f42.google.com with SMTP id v198-v6so5611258oif.9; Wed, 12 Sep 2018 11:16:49 -0700 (PDT) X-Gm-Message-State: APzg51DL6V4PNGTQaGx+ZusMBo1qiuf687PCs9Z1+vrzfpqa/5JrSNXm idooQF8XcjMrGewH99sDd1O3UAwVyPfTHrbTjSk= X-Received: by 2002:aca:dc82:: with SMTP id t124-v6mr3138934oig.189.1536776208737; Wed, 12 Sep 2018 11:16:48 -0700 (PDT) MIME-Version: 1.0 References: <20180911010838.8818-1-Jason@zx2c4.com> <20180911010838.8818-3-Jason@zx2c4.com> <20180911220849.GC81235@gmail.com> In-Reply-To: <20180911220849.GC81235@gmail.com> From: "Jason A. Donenfeld" Date: Wed, 12 Sep 2018 20:16:37 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v3 02/17] zinc: introduce minimal cryptography library To: Eric Biggers Cc: Ard Biesheuvel , 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 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. 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