Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp192364imm; Tue, 7 Aug 2018 16:49:32 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxw9MlDBXRmW53WYoYGgvNg26un+9YtKq2E7ucTE+wlEqzatJfXKgbSvUhrK0IxyPGNXTTh X-Received: by 2002:a65:5284:: with SMTP id y4-v6mr343929pgp.283.1533685772664; Tue, 07 Aug 2018 16:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533685772; cv=none; d=google.com; s=arc-20160816; b=W3MhZeMIqj8PKcf6Rg3N/TEmYWB89KkyTQS0z4I1+iTpqhgA2iIrHP4YAnCGqGMQyw hBz1NvYbFHkSdKzpwBbqp755RbO7DmSGuUfjKgAWMd8xarpLjipRA3y7JSh7vfAevxXf zKAWwZKQsP4MQGFttkH2C5MqF9E/ZCn0BSTyAD2kvf5Ivw/baIMZn+Ewk/V8NGVWn/+E aJcYhrssgnIo21AOe+8wx15Uir/dEbeTzvY0KQ7mQYwpO0C6FdYMCA6JiRCetorycoRq brwE6S3ecH3vIhpIsDa5wJE31j75avuJ4Ll8mCVXVhZFQ4hjYIYz58NkARrnFvTrSWS5 H0zg== 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 :arc-authentication-results; bh=McuMAmmRBbfU7z4tl1BqlECU3BkA79SursaZuepmVbE=; b=mtpMIrXrfKU6s5wilQnm+SuhCvtEAnpblfVgrzJX2Bgy3MRvTz4D2e0s2UWirn0gxI G1tBHXs/qlwTH54ZIpYpSV1XUgrD7WLw/lAyfHOIau/x3PmQIdRQaeFoiawznDrDPXtZ JFkohZvV3hxsLAysRRzulqQPAXycxNFFEyon7znLGKk8Z00YtRKSCLbAxLLPQvQrGs7X LdoxfG3eTYGfyaA/cUKwZSTkL/XnlZ32Ll6ZxSEV/ok3+Z4/D5q6003XNRKixBfb8P/5 OOD/i9B/8KLoOpZkNGX4caesPfoWlIhIiIM6qRBoLIzTt/qAJ7h8bLrv8MKEn4GCG0yX Sc2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=GcnPT18S; 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 c22-v6si2120903plo.271.2018.08.07.16.49.18; Tue, 07 Aug 2018 16:49:32 -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=GcnPT18S; 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 S1726875AbeHHCFV (ORCPT + 99 others); Tue, 7 Aug 2018 22:05:21 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:45823 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725975AbeHHCFV (ORCPT ); Tue, 7 Aug 2018 22:05:21 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id ee5aae85; Tue, 7 Aug 2018 23:36:14 +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=aezAgJsqthuIhL+8RCoJYQhHICo=; b=GcnPT1 8SWRda172bkfVU+cwsRpIYm1QGTF6Zbwj/6HyzdaEyGAppSy1YCEuFCGmPgvaULF qqT1+Xxfc8sPjiCAY/mtPb3qyQaevEGaevGHqIJ2IjT92Yf8EI+m5UPWg+Qd7bKC 61BZWmRPrYyZAweyzOaE76ae5Sm/J1F+OC8SWtSr3MP0+hv1xEiv7GKR/NO5b+Uk XAwvnSHtjSY+nBA4heCMjKIdPMreztderWsnB2wstw0GBZ/5Oaty0mJJuYb9ZRLi d9uRZ2qx0zEyXl3sc6tbQ613FpWXPRLLWTN5AOJEldFihuMPLZPljxUHCINbJy/X IK2mmyPeG+YVqzOw== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id e2d0feca (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Tue, 7 Aug 2018 23:36:13 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id 13-v6so755782ois.1; Tue, 07 Aug 2018 16:48:29 -0700 (PDT) X-Gm-Message-State: AOUpUlHLeOwLcrcc7yQtmTCvXPjDUMITn1HCR6CwlK3zrcDS6M/Ghjlg nzJPhig4EBdwY6KAmOENKWDe7q8bhmTeq14mv+k= X-Received: by 2002:aca:fc94:: with SMTP id a142-v6mr516795oii.29.1533685708643; Tue, 07 Aug 2018 16:48:28 -0700 (PDT) MIME-Version: 1.0 References: <20180801072246.GA15677@sol.localdomain> In-Reply-To: From: "Jason A. Donenfeld" Date: Tue, 7 Aug 2018 16:48:17 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 2/3] zinc: Introduce minimal cryptography library To: Andy Lutomirski Cc: Ingo Molnar , Thomas Gleixner , linux-arch@vger.kernel.org, Eric Biggers , Linux Crypto Mailing List , LKML , Netdev , David Miller , Andrew Lutomirski , Greg Kroah-Hartman , Samuel Neves , "Daniel J . Bernstein" , Tanja Lange , Jean-Philippe Aumasson , Karthikeyan Bhargavan 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 Hey Andy, On Tue, Aug 7, 2018 at 12:43 PM Andy Lutomirski wrote: > For "zinc: add simd helper", I think it should be in include/linux, > and include/linux/simd.h should (immediately or maybe in the future) > include to pick up arch-specific stuff. And the patch > should get sent to linux-arch@vger.kernel.org. I guess you saw my prompt about that in the previous commit message? Based on your encouragement, I implemented it: https://git.zx2c4.com/linux-dev/commit/?h=simd This is _far_ more invasive than I wanted to be, as I don't want this patch submission to grow unwieldy and never be merged, but I guess we can roll with this for now... > In your blake2s_arch() implementation, you're not passing in a > simd_context_t. Is that still a work in progress? I thought the plan > was to pass it in rather than doing the check in the _arch() > functions. I'm inclined to do the explicit context passing only when a function is likely to be used in that kind of environment, and adjust as needed. Long term, anyway, that API will be removed once the x86 guys figure out lazy FPU restoration and the amortization doesn't add anything. Jason