Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2434048rdb; Tue, 12 Sep 2023 01:25:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZwwZczdrTPZQVIZSexseSD0WYWt36BkBHEw2RS2WOMsztYIIq+dXTE9kZaAV/eUJR9Gkg X-Received: by 2002:a1f:ca07:0:b0:490:b58e:75a9 with SMTP id a7-20020a1fca07000000b00490b58e75a9mr6782679vkg.4.1694507144584; Tue, 12 Sep 2023 01:25:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694507144; cv=none; d=google.com; s=arc-20160816; b=g7R6UDcp9OyfeJKUZ8FEwBUWr6GpgKZVuu3d4a/5WtNZm1yX7uVXaMEnLMxr4VVuMG IrqaVcTXN9iT7bjT8fr+TK0LyRXSK+nBuNJKX5geWPA9P+VZxY8b1O/5VGlvssKwW2h1 jigo4WMfemR184so+r9HR3H2CjfNeAZMYeK1YCTuDgkb1Xtl1XDB1JJHaDZj/DDmeICy mSscVcxhgvbxYnP9r6smdODTEuYSbIxC/Hk0INM5FgwNCuhtJEjP+iGqxbstZ/2NwngA PB/4JL35uuQoklnpuxT9Jtl8DMR1R5eO9adkB6YWv7olsD8yN2/Z/2FG7FkvzyXHWd1t /78w== 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=YWNdyPVUhTz83dozDzHZ2crOn6mqNkmosICyn2Ni38s=; fh=zHLh4zV5JXMbcuMAWczRB+wYEYZ/hjgLLsRmgrRO77g=; b=V+R0OFKkv1hOf5hKDIR2f4xrj8XMV60BR27HBz8J54Cd4f2wRT3vxKd9fxVMC/h79h SRM8EL6yud0MLRKssRrTZQy/5B3LoON3WRiOwT8T2DD2vAl8+DWbQZTP7LWTbgx5iUV/ KPOCTLVyaj+82TyaVSSpK5yBPQ599xCyN2W/Zs2qXC4wUWFrh0/X3rIdBIsLatv7Na9S YJL5G106lTG2UA6SFkd0Qw6X/69m2jQoJXYiSeUFnOXffeThLfw3jABrg55sO4Wqkzdu CjyRQQlun2/FLtoz1A6pTQu1mQ0V3rb8IQP/HRROrorHrLgeE1FFS+VUwKgCcYJsOxnr cweA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=i66c3lbg; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id ch6-20020a056a00288600b0068fda436d14si1719348pfb.287.2023.09.12.01.25.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 01:25:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=i66c3lbg; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 496EE8034646; Tue, 12 Sep 2023 00:15:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231464AbjILHPl (ORCPT + 99 others); Tue, 12 Sep 2023 03:15:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231450AbjILHPk (ORCPT ); Tue, 12 Sep 2023 03:15:40 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E990DE73 for ; Tue, 12 Sep 2023 00:15:36 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-6c0c675cb03so2790172a34.1 for ; Tue, 12 Sep 2023 00:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1694502936; x=1695107736; 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=YWNdyPVUhTz83dozDzHZ2crOn6mqNkmosICyn2Ni38s=; b=i66c3lbgbghqJGC7PB+4j/Rqd7vq20QsbY3EvvQ+wB8fzgStQgLHyIdYnEDhprQ9Wa vWi676/nkiblofRZLiBcGJhYljWDj7bcFkRRpSbsjvc8KP+U3Dp5UN1U219qixaG8Y1V 4dmkilGn1a6VNUjHUP8rRMrmVTpWpueyuDPqJd8cx075dQ+RpH04Jspaw3LCjHl3XatO 8aRFUH0sd5qkwM/ApVE2G0r+7dQ1bZcpwzMqWD+aibQn51/UfPhsT9QSQ68PxO+Fwr2Z 4TwBA6/7MbHNOifvF7ITtas5ySzEXme893OswmGg+79qNEEZLeoEOVX9Kw2hOPouLiyX Tg1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694502936; x=1695107736; 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=YWNdyPVUhTz83dozDzHZ2crOn6mqNkmosICyn2Ni38s=; b=bvVeoz+G1Lwf7IveKP/9t0FjYIeugAwxuUNp4MHz3a7RMBGAdlGse3YlNBIuF0umsY euwx7pGxuhOBowH8lxQiHjsocJEEyNt0IDy7pZuA7Ze/FU4ezUpcj3+FS0TX/3Kvn+eq J2HI/hb59lA2NAYBXIB/Ui5sKLLPot8WTHqXDRPyMbcP8SgTuIAgyc634CiE1HqA00Yg HmKHBBPVmHG9+5uyONdHhd45mdW+D9lL0Bb56BzsJ7uI6mqrJHYDii9Ua821P5phkOa7 btO+VYQ+tLk0eiyBJF7YoTrHP35Dc15FCa7YPRacCflRfYTYIGpMYibhtiRiL6HcUUS2 nMlw== X-Gm-Message-State: AOJu0YycbdjK2YbUPIMiLuCH/YQqWF8k6mK4ljPmQFaZz0yft/kNC1Oa pz9bMVku7mSJczu7cvKVFSW/zA== X-Received: by 2002:a9d:7c8d:0:b0:6bc:b2a2:7b02 with SMTP id q13-20020a9d7c8d000000b006bcb2a27b02mr11581966otn.7.1694502936238; Tue, 12 Sep 2023 00:15:36 -0700 (PDT) Received: from ?IPv6:2402:7500:4dc:9c7e:c46c:519:8d4b:654f? ([2402:7500:4dc:9c7e:c46c:519:8d4b:654f]) by smtp.gmail.com with ESMTPSA id bk17-20020aa78311000000b0068fc9025a08sm2742425pfb.151.2023.09.12.00.15.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2023 00:15:35 -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: Jerry Shih In-Reply-To: Date: Tue, 12 Sep 2023 15:15:31 +0800 Cc: 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: CAMj1kXEGnZC6nge42WeBML9Vx6K6Lezt8Cc1faP+3gN=TzFgvA@mail.gmail.com Content-Transfer-Encoding: quoted-printable Message-Id: <1BB805D3-FF47-4A58-8507-CCA72A27DD82@sifive.com> References: <20230711153743.1970625-1-heiko@sntech.de> <20230711153743.1970625-11-heiko@sntech.de> <20230721054036.GD847@sol.localdomain> To: Ard Biesheuvel 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 (morse.vger.email [0.0.0.0]); Tue, 12 Sep 2023 00:15:39 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email On Sep 12, 2023, at 15:04, Ard Biesheuvel wrote: >> We have further optimization for RISC-V platform in OpenSSL PR[1]. It = will include >> AES with CBC, CTR, and XTS mode. Comparing to the generic AES = implementation, >> the specialized AES-XTS one have about 3X performance improvement = using >> OpenSSL benchmark tool. If OpenSSL accepts that PR, we will create = the >> corresponding patch for Linux kernel. >>=20 >> [1] >> https://github.com/openssl/openssl/pull/21923 >>=20 >=20 > This pull request doesn't appear to contain any XTS code at all, only = CBC. We have some license issues for upstream. We will append the specialized AES modes soon. -Jerry=