[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <CCA32056-CCE2-4FB5-8CFC-62444CDDA89F@sifive.com>
Date: Mon, 11 Sep 2023 21:06:47 +0800
From: Jerry Shih <jerry.shih@...ive.com>
To: Eric Biggers <ebiggers@...nel.org>
Cc: Heiko Stuebner <heiko@...ech.de>, palmer@...belt.com,
paul.walmsley@...ive.com, aou@...s.berkeley.edu,
herbert@...dor.apana.org.au, davem@...emloft.net,
conor.dooley@...rochip.com, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-crypto@...r.kernel.org,
christoph.muellner@...ll.eu,
Heiko Stuebner <heiko.stuebner@...ll.eu>
Subject: Re: [PATCH v4 10/12] RISC-V: crypto: add Zvkned accelerated AES
encryption implementation
On Jul 21, 2023, at 13:40, Eric Biggers <ebiggers@...nel.org> wrote:
> I'm looking forward to having direct support for these AES modes, especially the
> modes needed for storage encryption: XTS, and CBC or CTS! None of these AES
> modes is actually implemented in this patch yet, though, so they can't be
> claimed in the kconfig help text yet. This patch is just a starting point, as
> it just adds support for the bare AES block cipher ("aes" in the crypto API).
>
> (BTW, I'm much more interested in, say, AES-XTS support than SM4 support, which
> this patchset does include. SM4 is a "national pride cipher" which is somewhat
> of a niche thing. I suppose there are already people pushing it for RISC-V
> though, as they are everywhere else, so that's to be expected...)
>
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.
[1]
https://github.com/openssl/openssl/pull/21923
-Jerry
Powered by blists - more mailing lists