Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp25694imm; Tue, 7 Aug 2018 13:13:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdQ8avdvtZM0vYvRZ76FegXt2+zGXPWMsFoMb5+Kk3X3wrxTvbj5UZtEPoSH6+p/4EMU2Nv X-Received: by 2002:a63:790b:: with SMTP id u11-v6mr19790811pgc.111.1533672784321; Tue, 07 Aug 2018 13:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533672784; cv=none; d=google.com; s=arc-20160816; b=BkOgcXq13QQ4qqJstAb+yNWLZ3RgoXaM0eZxp43FUfYQ/SQMr6RBkcsWKd1klguO/w wofoE+3ydCmXnRfomr9BN800C2qoW4J+xO2ltAqfrcqeEYj9Kg0z/FbdBypmoYLorZOg WVjzNYSZWYuvqqJ4I+J/Q5Yp0fMGXLj9+/RI44hqftN+0JzTk8i5C3s+OB++ZAkuK84g X6iU9DIJJ4wi1+AW8JLfYOV2gYeZ49i7+YRiJQ/z8Ioo9RKh8FJmSa+H4WYTOs3Q1q3Y n/Y5PxaePuv+FCbaoxDFU2VQcyMhSNfq1j1OQe1MdGaClerDZRzjAMXZvN+zFsm/N1VX 8IbA== 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 :arc-authentication-results; bh=Lg9FpWgISElVEVEjmbUgJg42tPDw+EZxIHXjiMl/Ueg=; b=I88vnIR0mehkYi/U46p+Dg2U/A0BtuSMFo1158361QcPC7bNEeFy8nIcC1m3xSGnEa 1G8diUuExoGI1VjZKsQFWfy5T6EnrVLKRERqCSefO2Hm7xePIPMgbSnGMejUzBPIGtMs TbdqxbbUSceE1NG6YE5kGPTMnHgS518xJOAgwkvBw/GRvxv3veWs/zayuRiMVq0sVrpN W66X5/vKmf6y1SMvwWw5i5v9zIEIoD9Th/KFRLL0tet82K8AagiO4q7UFgp07RW29iRz EIH440uYsuweS8XHgJmsdq3S8IOswO6vkEzjbAfsTQ++xmt73589NYw0AbCx500HISPp heWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=U9zL7Dre; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t66-v6si2306163pgt.181.2018.08.07.13.12.48; Tue, 07 Aug 2018 13:13:04 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=U9zL7Dre; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390530AbeHGV7x (ORCPT + 99 others); Tue, 7 Aug 2018 17:59:53 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36319 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389807AbeHGV7x (ORCPT ); Tue, 7 Aug 2018 17:59:53 -0400 Received: by mail-wm0-f67.google.com with SMTP id w24-v6so311972wmc.1 for ; Tue, 07 Aug 2018 12:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Lg9FpWgISElVEVEjmbUgJg42tPDw+EZxIHXjiMl/Ueg=; b=U9zL7Dre1ApDcbbhgWV/c1BwkZ7lcVCqSzQm1rJd/8XYzfTEN8zViKCuwCEksmF/zc YFk9bKyw3TF71hxsRKnQZ4cOGwpPTCyImchwnsdo717gBbITk3MnNmPJoaygokontFjF fQCBMpCJq5gB+dmf9hYcfd5IvGUMtASBBe7sDchH4fIRrFwzkYNkbWjCpI5Tk8RWqGSH zs/Nq9otKcSaHt+D6vjLPITyKjlTbsJ3R0BG6L9ZKBsJ/bcvOf6W+BZW1QLJzVUBapSn GQZljZfCepxXTb1GCrGt3W8MsXmYNgw1d56Wd/u2mXC/+WYe1UE49eDGK8D4RLYB3hdV 650w== 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=Lg9FpWgISElVEVEjmbUgJg42tPDw+EZxIHXjiMl/Ueg=; b=SiAU9ugi1Bn4O60ZJFoTqSjqwX8USlcaatRX5nERe/rTzVtguMme5KTF48mFawtMFL G2m4dJTTxaWScMGRTN+YdDdhHErVCmNPI/a4RDM8wJxLBvkR0OnDDgVtUxx1XXIF5yxA DoImTL27UCbbFeL0gTtNfxGupUlJZTCHkBc/EZgy5LhYgIcCDHRL6GsUUdLTS3CHC6Bl nk3ZgJoMnDXomxRCj2SzXQqAoNZVyvlO5MOExxvOaSBXBjNUzkMOkKyyilV+htWtU+IF cKPrCwlUFUy3zxKH/0q+l54jYZM8X0MkunkdUphY0oUaa9pTkugq+ki9wKjy5bW5AKdq OnEw== X-Gm-Message-State: AOUpUlFU6gK98zg9bcBx3qLvDYHVmjkvrLZFD9ZYFtv2GCCtluGDlh1Y ihiFsDVh8MSOjjjYWPqYsPJBYLmFHot4XkFsRW9uxw== X-Received: by 2002:a1c:3413:: with SMTP id b19-v6mr2659287wma.21.1533671036206; Tue, 07 Aug 2018 12:43:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:548:0:0:0:0:0 with HTTP; Tue, 7 Aug 2018 12:43:35 -0700 (PDT) In-Reply-To: References: <20180801072246.GA15677@sol.localdomain> From: Andy Lutomirski Date: Tue, 7 Aug 2018 12:43:35 -0700 Message-ID: Subject: Re: [PATCH v1 2/3] zinc: Introduce minimal cryptography library To: "Jason A. Donenfeld" , Ingo Molnar , Thomas Gleixner , linux-arch Cc: 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 On Tue, Aug 7, 2018 at 11:54 AM, Jason A. Donenfeld wrote: > Hey Andy, Eric, & all, > > I've started the work of separating this out into 16 individual > commits, have addressed numerous other things brought up like the > ifdef maze, and have begun rewriting (parts of) the original commit > message. It's still a work in progress, and I still have some work to > do, but if you want to follow along, things are happening here: > > https://git.zx2c4.com/linux-dev/log/?h=jd/wireguard > > I'll be rebasing and reworking this continuously, but that's how it's > shaping up. > > As I'm still working on it, I won't be submitting v2 today, but if you > have suggestions or concerns or want to poke me while I'm working on > v2, don't hesitate to send me private email or ping me in IRC (I'm > "zx2c4" there) to chat. > > Regards, > Jason 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. 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.