Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp817310rwl; Wed, 5 Apr 2023 08:06:36 -0700 (PDT) X-Google-Smtp-Source: AKy350ZqlArhoZpi6kQFBbpyLb+/taTf9jBqeboCfsE57G2G114ejCR+N/L/2UcolfEeW01aowwY X-Received: by 2002:a05:6a20:2987:b0:d8:cfcc:555d with SMTP id f7-20020a056a20298700b000d8cfcc555dmr4981826pzh.17.1680707196230; Wed, 05 Apr 2023 08:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680707196; cv=none; d=google.com; s=arc-20160816; b=HDbQu/TsP0uvpTFyWWMTrr2PYiGhMCYYbYHpsgXWjGXjIi+DBn1OjWsrHMKISZtJ5K zlIHLMw5SsUvb0YL8pzd/S3wsXecg5RZ/011JhsZLXOo7CAz6Lv8fv3s2WlxmLhjUlOC YYB/Ik/k5Fkj+Z6oQ1syZYjuPejr68LulQcj4TPaxL5cPQzgf79MMGPWzxI+ssJSKRSX MFu1XYalYk2vjF+Nc8jB39whVqC+U5oiqurkOQEhbk9Zc91P5iQxMjZdkVhcDc3RgzOj W5MER4kaVWsD/xb6rO9fosFtsK/OvmsxnzeRw4udCHCcMf5sklQiXWLcZ8IlcveaB18v FT5A== 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=EqzpFCm0w66jpHPK1+Xg12wMHqzj3AU473bRWVupZdw=; b=dW0JStKY9qArAcrVT/AtNkjKjOlGULy4gpWgz9k7Aal2sdZqS0fYGXCZ/sKHbSElic X0LtsHkqF/GQU51n4gMqZRWEePmBKEuxz7ZH93nDljdhad8NR80MIEglkXQLzjMjlD7e gT+PGJVghvPzuxxIiMvNl/me3jirKpwowxwVDSBsWVbcgwLpkzH2cYb2SmZwfFyUW4UO /Ppsp7SqBAYDR7FMHIyVsgjDEaeqKJvynBwLej3buLutLmUxyO6jYdkQPoO5YThQtjx5 46Er1omUl7nMeRNAw4k2mQ17Wx0gHrfZuBrRsPgo4oNed/f3yfez/AK1p7qmLUkqKr48 hVhQ== 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 c190-20020a624ec7000000b0062609665997si12801278pfb.201.2023.04.05.08.06.19; Wed, 05 Apr 2023 08:06:36 -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 S238598AbjDEPFU convert rfc822-to-8bit (ORCPT + 99 others); Wed, 5 Apr 2023 11:05:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238385AbjDEPFR (ORCPT ); Wed, 5 Apr 2023 11:05:17 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C55AA9; Wed, 5 Apr 2023 08:05:14 -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 1pk4h0-0007m8-0z; Wed, 05 Apr 2023 17:04: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: Wed, 05 Apr 2023 17:04:57 +0200 Message-ID: <45936818.fMDQidcC6G@diego> In-Reply-To: <2102949.OBFZWjSADL@diego> References: <20230329140642.2186644-1-heiko.stuebner@vrull.eu> <2102949.OBFZWjSADL@diego> 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 again, Am Mittwoch, 29. M?rz 2023, 21:20:21 CEST schrieb Heiko St?bner: > Am Mittwoch, 29. M?rz 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/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. 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. If that fails, we'll provide our own files dual-licensed in a separate repository, similar to Andy's way of doing things. Heiko [0] https://github.com/openssl/openssl/pull/20649