Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp735069ybl; Thu, 12 Dec 2019 04:09:41 -0800 (PST) X-Google-Smtp-Source: APXvYqy7AQec3iyM6hqLVllg5ZMqKfoYpTh4L6MDmdFYOxH1jqnK0RyL9bIZqaCrjFczgmGqEc8L X-Received: by 2002:a9d:6251:: with SMTP id i17mr7957318otk.14.1576152580879; Thu, 12 Dec 2019 04:09:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576152580; cv=none; d=google.com; s=arc-20160816; b=pGZcR/gsbewXQQfR1kJEu3l8PDsxlK68yhL5pGNzTsLzpG9xshZEPJRN3FIleOOq5+ TTOH+MkcoxfVIJgD8nkYZ0v3Ic85k0YwoQc6vX78r4uoTdWy7zYUnUTX7e9Tm8CZXLWF Ijk2i3lDjSODQ+/BkBZGqwz19UZdspQS/v6rwNOoLpKsERgnfP7Jy0/bwR4RrsvuMUcB Pe6Z856F0b11Q2H2WSskBQz/QNhg2oltpkGmMG7lSyCOXvdJlQC5z1oovrXWVGvEFkCG 326qPmT4MbXj/SmikcsRima4RsHV8Uw0/+bZ6uN9lLZGnNVar1HvVoPE2rbM16eM3M2X rR/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=CvamylQs6HU5AKWm439htX3kfvOIiWVcA5tkGtvNtP8=; b=ORmWNyCuM1OCLYJtwt1ZWMwYQ515X6GLUF/nJOML1fpcwAwazjGezNnVSyFAM5z2i5 dJ/HJCdUCe/tfuMWiwjv+XLhZqKKMAhbsnbLRxoTPqiaqt+ynmiyiMOSo6F5MJxtpR+t cQEBj8BBBdf3wMvmW+dsDJk0raHC1VrgkI6au5t2IDU4De2oHKYl25USl9ys3k1rsMNz SvxMXMMhdwwCMVunTy8yAOngmK0+jMUIFgxqX7Nv/qqbJkMZr9rdRTQ5cKBjWWFDJNcS SE+P09QH88ZgIIYnNbktryLpaKbaukTk0vzkcSFiNuctTJ8AajkEk3KpLL6TeIop8zEd aalQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 k8si3452164otf.76.2019.12.12.04.09.14; Thu, 12 Dec 2019 04:09:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729060AbfLLMJK (ORCPT + 99 others); Thu, 12 Dec 2019 07:09:10 -0500 Received: from sitav-80046.hsr.ch ([152.96.80.46]:47108 "EHLO mail.strongswan.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729043AbfLLMJK (ORCPT ); Thu, 12 Dec 2019 07:09:10 -0500 X-Greylist: delayed 340 seconds by postgrey-1.27 at vger.kernel.org; Thu, 12 Dec 2019 07:09:09 EST Received: from obook.fritz.box (unknown [IPv6:2a01:2a8:8500:5c01:6946:d015:47d4:9c3d]) by mail.strongswan.org (Postfix) with ESMTPSA id 46AD2401A2; Thu, 12 Dec 2019 13:03:28 +0100 (CET) Message-ID: Subject: Re: [PATCH crypto-next v2 1/3] crypto: poly1305 - add new 32 and 64-bit generic versions From: Martin Willi To: "Jason A. Donenfeld" Cc: linux-crypto@vger.kernel.org Date: Thu, 12 Dec 2019 13:03:27 +0100 In-Reply-To: <20191212093008.217086-1-Jason@zx2c4.com> References: <20191211170936.385572-1-Jason@zx2c4.com> <20191212093008.217086-1-Jason@zx2c4.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Jason, > These two C implementations from Zinc -- a 32x32 one and a 64x64 one, > depending on the platform -- come from Andrew Moon's public domain > poly1305-donna portable code, modified for usage in the kernel. The > precomputation in the 32-bit version and the use of 64x64 multiplies > in the 64-bit version make these perform better than the code it > replaces. Can you provide some numbers to testify that? In my tests, the 32-bit version gives me exact the same results. The 64-bit version is roughly 10% faster. However, what are the platforms where the 64-bit version matters? Won't any SIMD version outperform the 64-bit version anyway? Martin