Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp147568imm; Tue, 18 Sep 2018 18:39:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbgleMu8zPJjEQcYGWptqVubEtuUeoqu9rPK0wzjIVY1DIb7YOrosSS/QZuZ7OsobjD7zRz X-Received: by 2002:a17:902:52c:: with SMTP id 41-v6mr32137521plf.201.1537321189449; Tue, 18 Sep 2018 18:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537321189; cv=none; d=google.com; s=arc-20160816; b=00RxfeTIh6iOFsX9ORPTUJTCs1bgdZMsTWHYbunroYzWhCm7/BcNz2iN6yTlwdl8+v 3MsHpHgWBdyFsam+5yDNEPib0p0LZtYaETIDML8vYmnleaX+k+BIKEPHE483MW5JdoCi 25ksFEHxZ1iZEH53wLZQnlnmw4CtnKCTZICzVjSuHkP2OWO3JgLXLoBB+MFBtuXRRskS jkTaTdLghxuc0+s4OhSoeFWUh3oE3k8z7TaauM4EV0RoaO5JB5CWF9hLZEaLKL85MXFE cLaa71xE0/fiTCeoWup6/wjPNe5j4APr8vIkr7JHw3Fc0JT8Zp5liCiIOb3/+cWjfDIu WZUQ== 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=ajPVrfJzKlUh1n5H5bjQo8GI1xuyCOWsEb49lla7PU0=; b=BPgKjx48nd5C8eSjkrrRs4i33AdYlNir1wrRdYE6w73hL0NfbV+v59m4OkIC/E/k9N VYh6SeGHQdWnD5tgQtk5w7TlSM0r/ieMzzu7n69g0+ziK1BsFfRwjtJYwmjfE7qA3iqc mHxRemgL6jsNO3Ky0hrqqT7Nj6d2Oq3m/fPDLo6vjvHbp8Fo3+RPcaSbeHyt42pj7xBE PSXcPVRD7ni1WXaqUP+honrBbg7eNxu8770ePA64cmtGe8POP0LLVqm0XkkgQiMPJ23o om+YAw/nLG2BTc+CfwVaeXw9eiJO5ZBB+7Waz90hboXTxf3+wOXFbB0eCG5fdVv7k8t5 /fmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=psJ8RB4X; 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 81-v6si1692209pgf.599.2018.09.18.18.39.34; Tue, 18 Sep 2018 18:39:49 -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=psJ8RB4X; 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 S1730798AbeISHOr (ORCPT + 99 others); Wed, 19 Sep 2018 03:14:47 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:52035 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726887AbeISHOr (ORCPT ); Wed, 19 Sep 2018 03:14:47 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id f9d3d76f; Wed, 19 Sep 2018 01:21:47 +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=wD37vfunmq4u/fZavF0KtBLymGo=; b=psJ8RB 4XwALrl5kABhF1jSpyMy5F0K3sTPeUPaB6RgC+2BKRg3wdHI2buenYZjqwyQbiPr aRK8dpTAQ3GgHgHnUyfBUiHPLX/mW2onQkTtR418qfMbON9dSCDMA3nU501WPeQF qxduKYxPitia2mJ3Aq7emJibRmfKv1ndMbzD0Cwp6LhmM+sz8uMjIynlLjqYDj4W PMCDYnot5e546MCO36Gb0BbIYyxCbJS96I6wjMLSXLaiaqgi9sTeyj4yJIvADR69 xQq0byhISJ96m/3Eac5yb9HDVB+096IhUAA/mTtZYrttSwAbkpdFMXTX/7Qr83pz JS5E/doQ3fl2nNRA== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id cd0cf264 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Wed, 19 Sep 2018 01:21:45 +0000 (UTC) Received: by mail-ot1-f53.google.com with SMTP id o13-v6so4085307otl.4; Tue, 18 Sep 2018 18:39:23 -0700 (PDT) X-Gm-Message-State: APzg51BGj4zMC1aSTKC4lcwNRNL3B4IUuZObTqILerGN5mjKa6+L+1fq iSB9oMhHanPMbQjkiilR7iBiPjBkJ96hmvQ+0NU= X-Received: by 2002:a9d:51d0:: with SMTP id d16-v6mr18404701oth.384.1537321162496; Tue, 18 Sep 2018 18:39:22 -0700 (PDT) MIME-Version: 1.0 References: <20180918161646.19105-1-Jason@zx2c4.com> <20180918161646.19105-8-Jason@zx2c4.com> <20180919005054.GC74746@gmail.com> In-Reply-To: <20180919005054.GC74746@gmail.com> From: "Jason A. Donenfeld" Date: Wed, 19 Sep 2018 03:39:11 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v5 07/20] zinc: Poly1305 generic C implementations and selftest To: Eric Biggers Cc: LKML , Netdev , Linux Crypto Mailing List , David Miller , Greg Kroah-Hartman , Samuel Neves , Andrew Lutomirski , Jean-Philippe Aumasson 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 > > + const size_t num = ctx->num % POLY1305_BLOCK_SIZE; > 0 <= ctx->num < POLY1305_BLOCK_SIZE, so no need to mod by POLY1305_BLOCK_SIZE. > > + size_t num = ctx->num % POLY1305_BLOCK_SIZE; > Same here. I know, but I was having a hard time convincing gcc-8 of that invariant, and it was warning me. Perhaps this is something they fixed, though, between 8.1 and 8.2 though. I'll check back and adjust accordingly.