From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 459C4C7EE2E for ; Mon, 12 Jun 2023 14:46:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vIE9T7xLjYwkZz7A10t4l/foNJ4MqPbbRo+KEahZ1Ms=; b=lXPvh2neb4WgUB mfIKKCdw6Uv3f+oNFxQ+gljtswvnno6sm82qpIu1po/cf6P63LXgxzuTwiL0phnm26foKmlfxhjtR J7+0ONaE86BMztSS2kkw3KFELwsbJLW4WffZ5l7hk7rXxCttwD4jOuyNcuUwCcMYEIoXNXJlZDfkG tisPxS/swXUP3MVPuatwVjbNESNvbBl+TaIILXtYh5RPosi8Qa3XkNCnyazAnJqgnuPhL1lAUj+2d DCdXnHRAZEU6s6y7zdaP37+qDteM6RWaiurU2zVyMu4kO7KoUxrdZ4D7jqLBYPl13c3ew1t2AVRz7 IMD9TVkgLspnU/jd1unA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q8ioA-004Ly3-1W; Mon, 12 Jun 2023 14:46:14 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q8io6-004Lwt-2b for linux-riscv@lists.infradead.org; Mon, 12 Jun 2023 14:46:12 +0000 Received: from i53875b22.versanet.de ([83.135.91.34] 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 1q8inu-0003G3-9v; Mon, 12 Jun 2023 16:45:58 +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: Mon, 12 Jun 2023 16:45:57 +0200 Message-ID: <3745175.MHq7AAxBmi@diego> In-Reply-To: <45936818.fMDQidcC6G@diego> References: <20230329140642.2186644-1-heiko.stuebner@vrull.eu> <2102949.OBFZWjSADL@diego> <45936818.fMDQidcC6G@diego> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230612_074610_846324_15F52875 X-CRM114-Status: GOOD ( 31.64 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Am Mittwoch, 5. April 2023, 17:04:57 CEST schrieb Heiko St=FCbner: > Hi again, > = > Am Mittwoch, 29. M=E4rz 2023, 21:20:21 CEST schrieb Heiko St=FCbner: > > Am Mittwoch, 29. M=E4rz 2023, 20:37:16 CEST schrieb Eric Biggers: > > > 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/cr= ypto/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 Apach= e 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 OpenS= SL. > > = > > 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. > = > just to follow up with the current state. > = > We're currently trying to see if openSSL allows us to dual-license the > files inside openssl itself [0]. It looks a bit like we're the first to > try something like this, so the decision gets to be made by the OMC. Openssl merged the dual-licensing approach. So we get Apache + BSD licensed code which should be ok to simply merge over without needing additional repositories and also allows to import future improvements on the openssl side. > [0] https://github.com/openssl/openssl/pull/20649 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv