Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4276937rdb; Thu, 14 Sep 2023 18:29:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjf6Q23MCdEV57pav539xg0SUjs9MxJ7oELs8iP5iNTgPsU3rFS3WtZ4QMezWCPhARH/3S X-Received: by 2002:a05:6a00:b83:b0:68f:ee51:7db1 with SMTP id g3-20020a056a000b8300b0068fee517db1mr375912pfj.11.1694741355348; Thu, 14 Sep 2023 18:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694741355; cv=none; d=google.com; s=arc-20160816; b=bwB1h1MjytI0+UiYnEXNuIjznhzR3nUPMcC8XoW4b9U1I0aEJIalXFrZZIoFr1u9c6 Hf/Y2tM60ts6b0AfU7bmTj1dI8Q5rQOPh/U5t8NkWcDuulWaNv2jjafdNF1iNMc/TKdL WnCy6xtRPvJ90gvJPV2ILqugAXa1cXU/5ugvXJEUlpeXGFTg3CGTOdboHdZaPfkSrRfw 23AKvrYKAg70lceejI0Gh+6dZ2q6CM1nO93BtvMR54PbFS7T0jIQTy9YD/0N0+fECEBf btpMtdZwlANo1Hvfs2QvvloUEkriks7LMNBT1suXXHUIPzRL+N8onsfO1dhsGXZ42zub z4Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:reply-to:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=Njb5nxfBOiRZsqkfkDCdtMn4zV0CHNcc0b53FSbSvDk=; fh=2Uz5zHWHncXH3wQrUzWODGiwXxIj/WJJd/G7NDsb8Z4=; b=hIjqBu3Q9zah76RGl3nqtdFs7YdYDF6xijZfUWCLMWH5wTILfZGlFVVDekb3rGjQFP z9yrlzFlAm6qW24C0M1XrQUsOV+CQ9xXqCSoWm3V7JIp3pNn/vRTqykXns9bomuRvCHt EBLedhAvzv8TuJTyyzDp4QSjxQHFQYZfdFqE0UcuVnT/FK53z9YvxB7hNESMn5aVhXxl 4n0Z1TEgE4/y0KQ0DvqfHvD5OPGcfolApMydNQ8W1Tvql2v6p0J/ElSkzPLCrZod1K3A 3ByKiZRmzjH9J5mNgujMtNzL7t5AvLPDTLnjOvNtUreNd+YNNEcf7iU67xX7+51Fyryu Rbag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M1nRHYil; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u26-20020a056a00099a00b0068a85532963si2570849pfg.160.2023.09.14.18.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 18:29:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M1nRHYil; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8F0B1838067F; Thu, 14 Sep 2023 18:28:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231289AbjIOB27 (ORCPT + 99 others); Thu, 14 Sep 2023 21:28:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231265AbjIOB27 (ORCPT ); Thu, 14 Sep 2023 21:28:59 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFCFA2100; Thu, 14 Sep 2023 18:28:54 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1bc0d39b52cso13957675ad.2; Thu, 14 Sep 2023 18:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694741334; x=1695346134; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:reply-to:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Njb5nxfBOiRZsqkfkDCdtMn4zV0CHNcc0b53FSbSvDk=; b=M1nRHYil2PdhrNp79H50VoXnhIm44DCeOO2CK3FIwgPI4hNHQwKcyQPwWvc5u4agoV U1/aqJs0BlRXE70lbpkiZaqvK4dpTYyQOkVk8DOZCfyFi82Xj9JXvpo/5M5oUb9hV8w9 IWXHj8z0hrHf7sw0DAyq11xPVhBH3+ooR1+Vxf38jIvmwlwAucwm1eLUcfyTR3jESoRe YIooab+Mqnkbye0Y1M1/LPdAJsPNb2qFW9ZRkNRxyshN75wMez/S4TgfdF7KEoez1OsC LZEVytzZQ4itiC8FdFC3sx5WUdSva5s2oYDTqSBclVt21CroRphWZ5WkUBg/KWTxEEDw ULoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694741334; x=1695346134; h=to:references:message-id:content-transfer-encoding:reply-to:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Njb5nxfBOiRZsqkfkDCdtMn4zV0CHNcc0b53FSbSvDk=; b=Xw3EjkZgzPwScXurxLf50mvgDeuiutB51m+0AZl7gnUNb9sAvM0hOtWz34KzfrA15Y hy8Qei/6OdzKyU4GQOTSZppKMygmXjHx5PAXob2+DyFSJRILwzw1uyE/zlCLvEQRGiAq Vl4951ibPvX50JJDFHJqLe3GNnpZlrNQjUFcpqerPuxxILWSiiUu4ksNIWuXXEe/1TBm dewuOm2gf4vg44Dz3LooOl4YcLhaZC9UKKJt+aXbt/Zb2aTcZ4W2OlD+36Jq/rwVHIKR 54Da+25In9w8L4pzNruIzTw51W1RR7idGUwi6DXvtADoOR3SbUePflCRLd9LiFR0PK5R yAlQ== X-Gm-Message-State: AOJu0YzSwMcMtjaKZytkWGgvJhJOcMDnbLzyUClAPVZd3heYSOBZ2Lq4 XA0hVlcV5Y/z384+yRtiLjE= X-Received: by 2002:a17:902:f80d:b0:1bc:382b:6897 with SMTP id ix13-20020a170902f80d00b001bc382b6897mr294837plb.13.1694741334104; Thu, 14 Sep 2023 18:28:54 -0700 (PDT) Received: from ?IPv6:2402:7500:5ce:c546:8426:5e14:d5b7:9128? ([2402:7500:5ce:c546:8426:5e14:d5b7:9128]) by smtp.gmail.com with ESMTPSA id w16-20020a1709027b9000b001c3a8b135ebsm2192536pll.282.2023.09.14.18.28.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Sep 2023 18:28:53 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Subject: Re: [PATCH v4 10/12] RISC-V: crypto: add Zvkned accelerated AES encryption implementation From: He-Jie Shih In-Reply-To: <1BB805D3-FF47-4A58-8507-CCA72A27DD82@sifive.com> Date: Fri, 15 Sep 2023 09:28:49 +0800 Cc: Ard Biesheuvel , Eric Biggers , Heiko Stuebner , 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, christoph.muellner@vrull.eu, Heiko Stuebner Reply-To: 1BB805D3-FF47-4A58-8507-CCA72A27DD82@sifive.com Content-Transfer-Encoding: quoted-printable Message-Id: <481D910C-8D83-4A6D-9D22-3D3A7C4723E6@gmail.com> References: <20230711153743.1970625-1-heiko@sntech.de> <20230711153743.1970625-11-heiko@sntech.de> <20230721054036.GD847@sol.localdomain> <1BB805D3-FF47-4A58-8507-CCA72A27DD82@sifive.com> To: CAMj1kXEGnZC6nge42WeBML9Vx6K6Lezt8Cc1faP+3gN=TzFgvA@mail.gmail.com X-Mailer: Apple Mail (2.3445.9.7) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Sep 2023 18:28:57 -0700 (PDT) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On Sep 12, 2023, at 15:15, Jerry Shih wrote: >> This pull request doesn't appear to contain any XTS code at all, only = CBC. >=20 > We have some license issues for upstream. We will append the = specialized > AES modes soon. We have the XTS and other specialized AES modes in OpenSSL PR[1] now. The specialized implementations all perform better than generic = implementation on FPGA. We will try to make that implementations happen in kernel. -Jerry [1] https://github.com/openssl/openssl/pull/21923