From: shihua@iscas.ac.cn
To: "Kito Cheng" <kito.cheng@gmail.com>
Cc: gcc-patches@gcc.gnu.org, jiawei@iscas.ac.cn, mjos@iki.fi,
palmer@dabbelt.com, shiyulong@iscas.ac.cn,
ben.marshall@pqshield.com, christoph.muellner@vrull.eu
Subject: Re: Re: [PATCH V2 0/5] RISC-V: Implement Scalar Cryptography Extension
Date: Fri, 17 Feb 2023 11:29:57 +0800 (GMT+08:00) [thread overview]
Message-ID: <45fadad4.3e64.1865d6be453.Coremail.shihua@iscas.ac.cn> (raw)
In-Reply-To: <CA+yXCZCx=k8V9y_dH0PEABxwVDAMEU5kLrrk0uMP-SsxUzUNKw@mail.gmail.com>
OK, I will send another one which remove riscv_scalar_crypto.h and update testcases with __builtin_riscv_XX
> -----原始邮件-----
> 发件人: "Kito Cheng" <kito.cheng@gmail.com>
> 发送时间: 2023-02-16 21:28:34 (星期四)
> 收件人: "Liao Shihua" <shihua@iscas.ac.cn>
> 抄送: gcc-patches@gcc.gnu.org, jiawei@iscas.ac.cn, mjos@iki.fi, palmer@dabbelt.com, shiyulong@iscas.ac.cn, ben.marshall@pqshield.com, christoph.muellner@vrull.eu
> 主题: Re: [PATCH V2 0/5] RISC-V: Implement Scalar Cryptography Extension
>
> Hi Shihua:
>
> Thanks for your patches! This patch set is generally in good shape,
> but I would prefer to remove riscv_scalar_crypto.h at this moment
> since it's NOT standardized yet.
>
> Do you mind sending a new version of this patch set which does not
> include that and also update the testcases?
>
>
>
> On Thu, Feb 16, 2023 at 3:52 PM Liao Shihua <shihua@iscas.ac.cn> wrote:
> >
> > This series adds basic support for the Scalar Cryptography extensions:
> > * Zbkb
> > * Zbkc
> > * Zbkx
> > * Zknd
> > * Zkne
> > * Zknh
> > * Zksed
> > * Zksh
> >
> > The implementation follows the version Scalar Cryptography v1.0.0 of the specification,
> > and the intrinsic of Scalar Cryptography extensions follows riscv-c-api
> > which can be found here:
> > https://github.com/riscv/riscv-crypto/releases/tag/v1.0.0-scalar
> > https://github.com/riscv-non-isa/riscv-c-api-doc/pull/31
> >
> > It works by Wu Siyu and Liao Shihua .
> >
> > Liao Shihua (5):
> > Add prototypes for RISC-V Crypto built-in functions
> > Implement ZBKB, ZBKC and ZBKX extensions
> > Implement ZKND and ZKNE extensions
> > Implement ZKNH extensions
> > Implement ZKSH and ZKSED extensions
> >
> > gcc/config.gcc | 2 +-
> > gcc/config/riscv/bitmanip.md | 20 +-
> > gcc/config/riscv/constraints.md | 8 +
> > gcc/config/riscv/crypto.md | 435 ++++++++++++++++++
> > gcc/config/riscv/riscv-builtins.cc | 26 ++
> > gcc/config/riscv/riscv-crypto.def | 94 ++++
> > gcc/config/riscv/riscv-ftypes.def | 10 +
> > gcc/config/riscv/riscv.md | 4 +-
> > gcc/config/riscv/riscv_scalar_crypto.h | 218 +++++++++
> > gcc/testsuite/gcc.target/riscv/zbkb32.c | 36 ++
> > gcc/testsuite/gcc.target/riscv/zbkb64.c | 28 ++
> > gcc/testsuite/gcc.target/riscv/zbkc32.c | 17 +
> > gcc/testsuite/gcc.target/riscv/zbkc64.c | 17 +
> > gcc/testsuite/gcc.target/riscv/zbkx32.c | 18 +
> > gcc/testsuite/gcc.target/riscv/zbkx64.c | 18 +
> > gcc/testsuite/gcc.target/riscv/zknd32.c | 18 +
> > gcc/testsuite/gcc.target/riscv/zknd64.c | 36 ++
> > gcc/testsuite/gcc.target/riscv/zkne32.c | 18 +
> > gcc/testsuite/gcc.target/riscv/zkne64.c | 30 ++
> > gcc/testsuite/gcc.target/riscv/zknh-sha256.c | 29 ++
> > .../gcc.target/riscv/zknh-sha512-32.c | 43 ++
> > .../gcc.target/riscv/zknh-sha512-64.c | 31 ++
> > gcc/testsuite/gcc.target/riscv/zksed.c | 20 +
> > gcc/testsuite/gcc.target/riscv/zksh.c | 19 +
> > 24 files changed, 1183 insertions(+), 12 deletions(-)
> > create mode 100644 gcc/config/riscv/crypto.md
> > create mode 100644 gcc/config/riscv/riscv-crypto.def
> > create mode 100644 gcc/config/riscv/riscv_scalar_crypto.h
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zbkb32.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zbkb64.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zbkc32.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zbkc64.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zbkx32.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zbkx64.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zknd32.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zknd64.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zkne32.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zkne64.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha256.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha512-32.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zknh-sha512-64.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zksed.c
> > create mode 100644 gcc/testsuite/gcc.target/riscv/zksh.c
> >
> > --
> > 2.38.1.windows.1
> >
</shihua@iscas.ac.cn></shihua@iscas.ac.cn></kito.cheng@gmail.com>
prev parent reply other threads:[~2023-02-17 3:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-16 7:50 Liao Shihua
2023-02-16 7:50 ` [PATCH V2 1/5] Add prototypes for RISC-V Crypto built-in functions Liao Shihua
2023-02-16 7:50 ` [PATCH V2 2/5] Implement ZBKB, ZBKC and ZBKX extensions Liao Shihua
2023-02-16 7:50 ` [PATCH V2 3/5] Implement ZKND and ZKNE extensions Liao Shihua
2023-02-16 7:50 ` [PATCH V2 4/5] Implement ZKNH extensions Liao Shihua
2023-02-16 7:50 ` [PATCH V2 5/5] Implement ZKSH and ZKSED extensions Liao Shihua
2023-02-16 13:28 ` [PATCH V2 0/5] RISC-V: Implement Scalar Cryptography Extension Kito Cheng
2023-02-16 13:52 ` Markku-Juhani Olavi Saarinen
2023-02-16 14:00 ` Kito Cheng
2023-02-17 3:29 ` shihua [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45fadad4.3e64.1865d6be453.Coremail.shihua@iscas.ac.cn \
--to=shihua@iscas.ac.cn \
--cc=ben.marshall@pqshield.com \
--cc=christoph.muellner@vrull.eu \
--cc=gcc-patches@gcc.gnu.org \
--cc=jiawei@iscas.ac.cn \
--cc=kito.cheng@gmail.com \
--cc=mjos@iki.fi \
--cc=palmer@dabbelt.com \
--cc=shiyulong@iscas.ac.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).