Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4708858imm; Tue, 7 Aug 2018 06:10:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdizMhwL2JJ+PcseEx7RzT2jT4ZNwzsp6i+6uOcVDhPoRFYlRM36Z9YUSxZ6cNethuxkuys X-Received: by 2002:a62:4494:: with SMTP id m20-v6mr21698454pfi.205.1533647412583; Tue, 07 Aug 2018 06:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533647412; cv=none; d=google.com; s=arc-20160816; b=vgYSzdw0WoUL3CH+7/DE6gL+x0i1SBWRHyE0LmFP5nHff5+1lcbJfdc7DIn/TrvqQw Vhrddur4uMWtQyk930Knz8B8iQV6mCRHsIKMWWBzRA7djXHVzoai/3YPKYNSyBXo2rNQ QbZ4i3hoCIVdxA0Hp9y8fkyQQquh9YwrQvrcehQVm1nhz5jqJW19n8M9HybjYKRWOQrH UWVe9wTmzKfyo8MOppbMME2a2wyd05svuH6aqv0CCAOAgzMMX+UsF+UiH904eRVdofQl s1hzCFMXWP0QvSir3tj5wNnFbWbonrAdY+Dw4HVst0qoXj68NZY61i1I57C/4uRRX/R8 cxag== 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=3YM5yxBcH2gTdV4OwCJxQXs9pMmR63KgjLeLzs4d3So=; b=uA4jg7eCsa5na2h1GgQYEimr8INFhwykTeoezlhUGQfGyK5K4C4wZv4jBNkdY/uZJm oRU6vFgOi0F6QCuHPBHqIMwUISZqfd6Kz9pfw0jQoyO1bHO2lLpBrQ4UEAlQ3/sXtpqp s46RegJkO5A+uk9KCa46abF9imDhGzqW+eaqQpF6I4V1SwB9m0IYZLltvzArPPVki9TV GZsKFajNTeDWzdi60aQFd/bnkmZL7eK3/IEEe6t1xu7UfBpIndPFBjvV4xgPJKNvHeNH MYSGhRh6gbvBjArYNRubtaTA/1DGwTlaX+Lkz9Ir78/LZ6Et9b6GwX30vFWkKk9IMbaH kNMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b2PmTAHH; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16-v6si974274plp.317.2018.08.07.06.09.57; Tue, 07 Aug 2018 06:10:12 -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=@linaro.org header.s=google header.b=b2PmTAHH; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388985AbeHGOXJ (ORCPT + 99 others); Tue, 7 Aug 2018 10:23:09 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:37209 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727201AbeHGOXI (ORCPT ); Tue, 7 Aug 2018 10:23:08 -0400 Received: by mail-it0-f68.google.com with SMTP id h20-v6so22615518itf.2 for ; Tue, 07 Aug 2018 05:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3YM5yxBcH2gTdV4OwCJxQXs9pMmR63KgjLeLzs4d3So=; b=b2PmTAHHbywT7/bZXcFqsSiBpdTzV5RotckvdzUEfCeYy3zAzTU24K5oZGy7BUYOqs YRlWdc5yxW+L1O2rXea+yd0LjXaNzq83QBdDNMGCvdpQYggZs0G7CMqsznG1Gx/WNEen iujfszPNDeFE90hA3PPVixa8kUnMICQoEv8Y8= 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=3YM5yxBcH2gTdV4OwCJxQXs9pMmR63KgjLeLzs4d3So=; b=jI7UmcOJC8Xg661XwN9x7ct4Yl6EZLMr0ZF8k1QmYorXPlXnowIe7h30eipR2NsX5Z LiGlteQqt9mB0YFeV1SYcHXu+I6H7rnXoastVCPEZ4FuYaIVATYWWJ9L+zC3dJhRmusz 6z41aKXfEeyt3f9xJZx+2EzoLIWKWV5rD4O/4+N+c0QHLsYhBA7ef3m9jeQ7O4SuWAUK gCbx0+j7XqN8zJEEFF7G9ODUSf+LcACZ6DtOm0wKJHeb5Qzlq0hMFGSYvNLGlKbBY2fL mrEYE4mJ5FnOqEWbqNRFhmlkE5h3DLQBvBauzcEkOY7K+hdk8loZKedsXjKBBP+Yl+ud xAuQ== X-Gm-Message-State: AOUpUlG+qQoULORM24lCM1oFLPohZkoTdOggpTcoBKFnQogNEHpg64EM auQ5fvhZjavkg5+u6RNJ+gx/5LnjNyP9qhTxL2hFTA== X-Received: by 2002:a24:610d:: with SMTP id s13-v6mr1671722itc.68.1533643745960; Tue, 07 Aug 2018 05:09:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:ac05:0:0:0:0:0 with HTTP; Tue, 7 Aug 2018 05:09:05 -0700 (PDT) In-Reply-To: <20180806223300.113891-9-ebiggers@kernel.org> References: <20180806223300.113891-1-ebiggers@kernel.org> <20180806223300.113891-9-ebiggers@kernel.org> From: Ard Biesheuvel Date: Tue, 7 Aug 2018 14:09:05 +0200 Message-ID: Subject: Re: [RFC PATCH 8/9] crypto: arm/poly1305 - add NEON accelerated Poly1305 implementation To: Eric Biggers Cc: "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , linux-fscrypt@vger.kernel.org, linux-arm-kernel , Linux Kernel Mailing List , Herbert Xu , Paul Crowley , Greg Kaiser , Michael Halcrow , "Jason A . Donenfeld" , Samuel Neves , Tomer Ashur , Eric Biggers 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 7 August 2018 at 00:32, Eric Biggers wrote: > From: Eric Biggers > > Add the Poly1305 code from OpenSSL, which was written by Andy Polyakov. > I took the .S file from WireGuard, whose author has made the needed > tweaks for Linux kernel integration and verified that Andy had given > permission for GPLv2 distribution. I didn't make any additional changes > to the .S file. > > Note, for HPolyC I'd eventually like a Poly1305 implementation that > allows precomputing powers of the key. But for now this implementation > just provides the existing semantics where the key and nonce are treated > as a "one-time key" that must be provided for every message. > > Signed-off-by: Eric Biggers Hi Eric, In the past, I worked with Andy on several occasions to get my kernel changes incorporated into the upstream OpenSSL version of the 'perlasm' .pl file. This achieves a number of things: - we get a readable version of the code in the kernel tree, - our changes are reviewed upstream - upgrading involves grabbing the latest .pl file rather than merging generated code (which requires careful review) - GPLv2 permission is made explicit, rather than something someone claims to have reached agreement on, - no legal ambiguity whether the output of the perl script is covered by the license (which is what we incorporate here) Note that the 'available under GPL depending on where you obtained the code' in the CRYPTOGAMS license likely conflicts with the GPL itself, but I am not a lawyer so I'd much prefer having the upstream copy mention this explicitly.