Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1082466rwl; Wed, 29 Mar 2023 12:24:29 -0700 (PDT) X-Google-Smtp-Source: AKy350aBW88O6d62yse4i7kNxWmtUEfKQKsSBAzheWPtHFdGKvUqs+KIuCmp6kBpPDPi+r1rIyLU X-Received: by 2002:a17:90a:1943:b0:23d:3057:12a3 with SMTP id 3-20020a17090a194300b0023d305712a3mr22858425pjh.27.1680117868974; Wed, 29 Mar 2023 12:24:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680117868; cv=none; d=google.com; s=arc-20160816; b=G/ChxAQ3oVThX0JwFHIPdNJjj6CSW8H5T4f3U1VxnZFh+AXxaMZIR3j9vJmmOnaHpW b7zWKpGij0Bdoebz6FLUyG/2QhRxe7mLlNsXmNZ9xtEldi1hZuqpChe/iu1dlki598eB 23Kz7MM43p/g+AqjUUf9eotveMoWaJa03XFFSnxOlc5xRal0QTCJoJPxfiQxIXi4QuBs +X4GfRqkqeDsylPUj4UdYv6lZzsSUnAHxtaTty6Gkid9lDUWMEKQJYDmd58T1fGvi1dg kdU/jkq7IWG3OXAN6iOXAqopZC6Dso0G+g8apnFh9s2gq4VKswjhWZ+Ne3YsWgqqYOtI FxZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=JX9xqOHf2fjS0rzpsDeUybitms81U5C1zn9FFbYku94=; b=f4w6eoNGPTMs+iqwegZXYDidEezXPdWEwlvffy7lWHcZjRelQEoFrotdtidpr/FL28 r+G3H0odP3usSrIm01GZuY4TqJl7VnQ62dEQ7yhuM1ZfX9unmfkPo0U1FDZdzYIkL9Yb /KdSkt4Kc7owRRHRKp+WXjJ/Sey4qQixaKqY0m8nICktOqYJjhFwBT+UXeoL8bctaU2A e1107UsFjKARJFlXJ2Aqb9gg75zOf3JfNG+B/xg1EYVMpTAmjGwpNgLNOdis0rKo4L0m Hmn3MauDyNgt5TZHfyEtUdzRlLfHujq6ucs9k/LWCBOvkIidHMgrpNa9hNoHJNaFvExM G1rQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13-20020a65454d000000b005137bf7e2d4si3496734pgr.652.2023.03.29.12.24.17; Wed, 29 Mar 2023 12:24:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229810AbjC2TUq convert rfc822-to-8bit (ORCPT + 99 others); Wed, 29 Mar 2023 15:20:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbjC2TUo (ORCPT ); Wed, 29 Mar 2023 15:20:44 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34CBD4201; Wed, 29 Mar 2023 12:20:40 -0700 (PDT) Received: from ip4d1634d3.dynamic.kabel-deutschland.de ([77.22.52.211] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1phbLK-0006eg-Uh; Wed, 29 Mar 2023 21:20:22 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Eric Biggers , christoph.muellner@vrull.eu Cc: palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, herbert@gondor.apana.org.au, davem@davemloft.net, conor.dooley@microchip.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: Re: [PATCH v4 4/4] RISC-V: crypto: add accelerated GCM GHASH implementation Date: Wed, 29 Mar 2023 21:20:21 +0200 Message-ID: <2102949.OBFZWjSADL@diego> In-Reply-To: References: <20230329140642.2186644-1-heiko.stuebner@vrull.eu> <20230329140642.2186644-5-heiko.stuebner@vrull.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_PASS,T_SPF_HELO_TEMPERROR autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eric, Am Mittwoch, 29. M?rz 2023, 20:37:16 CEST schrieb Eric Biggers: > Hi Heiko, > > On Wed, Mar 29, 2023 at 04:06:42PM +0200, Heiko Stuebner wrote: > > diff --git a/arch/riscv/crypto/ghash-riscv64-zbc.pl b/arch/riscv/crypto/ghash-riscv64-zbc.pl > > new file mode 100644 > > index 000000000000..691231ffa11c > > --- /dev/null > > +++ b/arch/riscv/crypto/ghash-riscv64-zbc.pl > > @@ -0,0 +1,400 @@ > > +#! /usr/bin/env perl > > +# Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. > > +# > > +# Licensed under the Apache License 2.0 (the "License"). You may not use > > +# this file except in compliance with the License. You can obtain a copy > > +# in the file LICENSE in the source distribution or at > > +# https://www.openssl.org/source/license.html > > My understanding is that code that is licensed under (only) the Apache License > 2.0 cannot be included in GPLv2 programs such as the Linux kernel. Thanks a lot for pointing out that possible licensing issue. It seems I'm not touching enough non-GPL code most days to keep that in the front of my mind :-) . > Is this code written by Andy Polyakov? What's been done in the past for his > code is that he re-releases it in CRYPTOGAMS at > https://github.com/dot-asm/cryptogams with a Linux kernel compatible license. > The Linux kernel then takes the code from there instead of from OpenSSL. The git log for the original openssl ".pl" thankfully only contains @vrull.eu addresses, so getting this in a compatible license shouldn't be overly hard - I hope. Heiko