Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp277890imm; Tue, 7 Aug 2018 18:51:16 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwia6+ggO/3TE0kxo8qembXFzi5zvA1hej6co2rMHSeap/ZgWhm8kRPlQpvqZXV4Lwte7hk X-Received: by 2002:aa7:87d0:: with SMTP id i16-v6mr772703pfo.82.1533693076020; Tue, 07 Aug 2018 18:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533693075; cv=none; d=google.com; s=arc-20160816; b=cSHPvbfAsxgHggP49CZjsNgOBpB8+eoCqKY/tXvYsXjpZPqk8rPQ9zXb6/bqj2kCfT 43x8XLYQYqgL27J2DOTAFUIW52lCa5LsTkzUjECUlF5I3r36ulf+aiIVOoa2heQLjj6y USpDF6Wj6CQYLUZ2L5t0Jzu30MLnyVaOwiejqjkPiGFeygqrGPe6X9ivDjcXo5JLhbKk KyVD6OleZjIRRvBq07CWUJfpd9+npRWhcSa3brwb4GtwhQJreQaXaaYI2tdxDm8+uRdx yFD/0VzqMXewInr4xgWekM/yJtptENtaPntjUf4/Rh68SKLlrst4tY8q1WafpoXFVf2C ZSqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=YGvxTVfrSeb46NmnKlJgLm4BVn46Shy1X50G2+cffQI=; b=NtCziGninHoLvaedC1GZJCQhbcGhaNCou1JjNeianX7MIk5mmswNQf3vLHtIzK4YNa NEe7QEY7EJosWKD1yCPzykfQToWS2pl+2ENjf07YjPTeTW+lWJ5PxhYjv6ytjN00Z6pQ bDEjAYakzomIWQm1ZWrVya41y6lNDVqwwHgsaPe/ymjFvKoWAjwHNuMKuTUzvy9PaCui WK3VQb2lApyNey2DfleBMtEDiCM2WxkXZTE0UzSa+o8Adn1lFyy6v6Z3lBLb27E8/sxG Hk21OD7RNjIhJKKedEHKQ+Cx4/ugTyNgSDl/wYDv4qBQBFv0vVLJGscWKnJzkW4oA4VT 8Vng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=T57Kiwak; 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 q8-v6si2629890pfh.353.2018.08.07.18.51.01; Tue, 07 Aug 2018 18:51:15 -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=T57Kiwak; 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 S1727032AbeHHEGP (ORCPT + 99 others); Wed, 8 Aug 2018 00:06:15 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36564 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726957AbeHHEGO (ORCPT ); Wed, 8 Aug 2018 00:06:14 -0400 Received: by mail-pg1-f196.google.com with SMTP id h12-v6so298848pgs.3 for ; Tue, 07 Aug 2018 18:49:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YGvxTVfrSeb46NmnKlJgLm4BVn46Shy1X50G2+cffQI=; b=T57Kiwak2MkBpula0Ui/Rtc0iVDvt5O3jEBwbU2HAwAT1SdJIuuYNSEEkewKmycLwp xMCs373XsMmHG2MdZmMtt9GChwVEaCKYI+8g28YMciVvWMRKtIZpG0sMbTMR8ZPh1BYp 83u3wavzn0jwWTH/a7V8qXTR6jlWKJiZ4oLTM1C6rtq9ciRj3DmncVQNHQxmIg5el5rd BKARabobaJYN8InxQ+qwiuZDzYSFtVfmIUFJMxpBljhSpKewpNK3/iHB2OPeBWlwVzBn 7KKA3uUWlxQPI8DjQDyqMvCkMfljz7901jXoEoFV3UKRDJ0jmhU+b0wJqaTRbCpdbhkg 7gWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YGvxTVfrSeb46NmnKlJgLm4BVn46Shy1X50G2+cffQI=; b=PP54BuYe6HdOmvcFvcAht/pf1HDORXZJJRBY0rJJSQVoxML4Sgff93u8R0WhMa9IIW DZkqZ//r6X15hnqllzBDFtpdk2umenHqz6j/oh4DHDhy/TBJvClPwQupLVPNmE1N1Lza omlHCkKMSKbYq4iLMueule3jAUBGfsOl/TVY19xQGUuje2DjQKwBcx1XEM9LDYeegSQi vcfvA2GFKQAxmvLypn1jXkELQ5qTsw3suEYw86+guCFeDf6SaDsfG80l/RWnp+yoh1nm WJ8Dpzm/G43Q2urPQp2doiy5ijCzpdJvodWo36vTT97DY6eUauUyVl7K22lP1C9xeZ/e NuEQ== X-Gm-Message-State: AOUpUlEGIfO4PVH5mLPVxTXhzWUVuY2mUVzSF2ujZ7dga8MhXBNsOPIA LSSt+irMzT2XQuQvDsbMVAIGYA== X-Received: by 2002:a62:3856:: with SMTP id f83-v6mr783398pfa.48.1533692941303; Tue, 07 Aug 2018 18:49:01 -0700 (PDT) Received: from ?IPv6:2601:646:c200:7429:6cb2:c0a0:8aa4:2e86? ([2601:646:c200:7429:6cb2:c0a0:8aa4:2e86]) by smtp.gmail.com with ESMTPSA id h190-v6sm3463531pge.85.2018.08.07.18.48.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Aug 2018 18:48:59 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: [PATCH v1 2/3] zinc: Introduce minimal cryptography library From: Andy Lutomirski X-Mailer: iPhone Mail (15G77) In-Reply-To: Date: Tue, 7 Aug 2018 18:48:59 -0700 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-Transfer-Encoding: quoted-printable Message-Id: References: <20180801072246.GA15677@sol.localdomain> To: "Jason A. Donenfeld" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Aug 7, 2018, at 4:48 PM, Jason A. Donenfeld wrote: >=20 > Hey Andy, >=20 >> On Tue, Aug 7, 2018 at 12:43 PM Andy Lutomirski wro= te: >> 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. >=20 > 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=3Dsimd 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... >=20 I really wish we had a way to see that we use asm-generic=E2=80=99s copy of a= header in all cases except where an arch opts out. >> 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. >=20 > 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. Fair enough. >=20 > Jason