Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp917968imm; Wed, 26 Sep 2018 08:46:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV60X2POwj3jE6e3/9TlBzesrhYWLIbtSrjOou3EZ6SElVSr8MEosryf7/PhLS4M5+g7N26dQ X-Received: by 2002:a63:d309:: with SMTP id b9-v6mr6327052pgg.163.1537976760427; Wed, 26 Sep 2018 08:46:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537976760; cv=none; d=google.com; s=arc-20160816; b=Oed8vzsxvvFGwCZRWtYVdLAEQrsdC4cNZnd/aCXqB9AJh0tCmTBbBjndQcDgJO5N9z awUJVYcEvRN+/ZcbYnThEVz5qT0WKqOJq9uhlPWO9rYIJWnEk8BqPM6ORO8Zxr7CP8Pb fN9Dbz9KEB76n22+R0EsJ/nEw8+5PO84wbBZfcNw7tmAggBJVo4qEQnRkIlpHn9/6KA1 +hGqaORO6zRX+JLTppmPaS4L5ztIEOQsV58db5T5NYwN4LndIfCwOM2NMp/0z/PjgH9i T5zanNOH60SI1eBWZ/KWV9bFi6GatX6OPqclMyxwi0z9PAa8cyjeKBm9sVVlx7G0kA2X GqHA== 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=p0mBr3ZMZZr9roT9CdkjJVrF9xb9BtlLiCIDxXFj3do=; b=OuD4dpictliK1Sgn7bPJjZrRsfZWuDmdgYf86aC7ARYG2qE9j4Hm/wS47MtwyIqgV+ RyYLy8teHYgBIqs90Jp7a05eXu3UpHBMZv5XUZU4Otp/cbgQm0vdwP3bWsHnLT7NTN5O E2j4+ksrzgLS1O81yLSP0h3igvzlOx2nqGd309ML0qZ9xGAaMDj0r37hrXkuTKDE/VTS 67CiW29NZczlLsKMfLJ0gFVvM7zFr3R0T/MaMKIMql3pD1xWcNyLQj4+Cg4Jc59/BJ84 XFgut5k8XQAGgqS5paAZ/dqes4XyoEEzs8y21WdhLfW3ByeZCzfOe83vriQyksgVzdVV cvig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=C5Dnm0oA; 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 l10-v6si5712890plt.440.2018.09.26.08.45.45; Wed, 26 Sep 2018 08:46:00 -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=C5Dnm0oA; 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 S1728430AbeIZV7I (ORCPT + 99 others); Wed, 26 Sep 2018 17:59:08 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:54209 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727104AbeIZV7I (ORCPT ); Wed, 26 Sep 2018 17:59:08 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 01dd254b; Wed, 26 Sep 2018 15:27: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=Ye0gNrGAiMxFaM5DVYfED5qBxwU=; b=C5Dnm0 oAKO6AqKkfiQly1sKoeIjVDbkY05p38EWfb3kfx21bQW81uYyYWfjMNkhmz4syQT iCTmUXitavt+DPfeWs43L632DJV/3UVMIIoq19/nmbabNdLvnXDheMYr3iJxtkH8 Hgc4y0UTyQyQPpbdfO2BtQW43hDH8GLK1Cv8gsceqi6Mgf4j8hn8Lzo7P4NAgR82 pUdyq+94EYtCXeGI6Brz77WIiEDLUqeQUjNy7maZUcFWMVK6MduyZtosTI4dHkh0 YGbpqEDPiXVlFkV9BI5xt7gFmoDs5lTjKDdXqLlnv68DoQO3cCiSs5yTXWaNQuKa r52IZEJIospOWA9A== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 97307b1f (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Wed, 26 Sep 2018 15:26:59 +0000 (UTC) Received: by mail-ot1-f43.google.com with SMTP id h26-v6so28604269otl.9; Wed, 26 Sep 2018 08:45:32 -0700 (PDT) X-Gm-Message-State: ABuFfojXEoQG2ltE8gM/xF2qQ15wmKYhv443vmFvpEqse2A1wg/BzgZG x1Dl3euO2QoLpNnD7efXe+69uwkt25hyOGbLBCw= X-Received: by 2002:a9d:6554:: with SMTP id q20-v6mr4757686otl.209.1537976731409; Wed, 26 Sep 2018 08:45:31 -0700 (PDT) MIME-Version: 1.0 References: <20180925145622.29959-1-Jason@zx2c4.com> <20180925145622.29959-8-Jason@zx2c4.com> In-Reply-To: From: "Jason A. Donenfeld" Date: Wed, 26 Sep 2018 17:45:20 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v6 07/23] zinc: ChaCha20 ARM and ARM64 implementations To: Ard Biesheuvel Cc: Herbert Xu , Thomas Gleixner , LKML , Netdev , Linux Crypto Mailing List , David Miller , Greg Kroah-Hartman , Samuel Neves , Andrew Lutomirski , Jean-Philippe Aumasson , Russell King - ARM Linux , linux-arm-kernel@lists.infradead.org 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 Wed, Sep 26, 2018 at 5:42 PM Ard Biesheuvel wrote: > > On Wed, 26 Sep 2018 at 16:02, Ard Biesheuvel wrote: > Actually, looking at the code again, the abstraction does appear to be > fine, it is just the chacha20 code that does not make use of it. So what you have in mind is something like calling simd_relax() every 4096 bytes or so?