[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 3/7] crypto include/crypto target/arm: move sm4_sbox to cr
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v3 3/7] crypto include/crypto target/arm: move sm4_sbox to crypto |
Date: |
Thu, 30 Dec 2021 15:46:29 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 |
Hi,
On 12/30/21 15:30, liweiwei wrote:
> - share it between target/arm and target/riscv
"Share sm4_sbox between ARM and RISCV targets."?
>
> Signed-off-by: liweiwei <liweiwei@iscas.ac.cn>
> Signed-off-by: wangjunqiang <wangjunqiang@iscas.ac.cn>
> ---
> crypto/meson.build | 1 +
> crypto/sm4.c | 48 ++++++++++++++++++++++++++++++++++++++
> include/crypto/sm4.h | 6 +++++
> meson | 2 +-
> target/arm/crypto_helper.c | 36 +---------------------------
> 5 files changed, 57 insertions(+), 36 deletions(-)
> diff --git a/crypto/sm4.c b/crypto/sm4.c
> new file mode 100644
> index 0000000000..1cdcb8a620
> --- /dev/null
> +++ b/crypto/sm4.c
> +uint8_t const sm4_sbox[] = {
Please explicit the [256] array size.
> diff --git a/meson b/meson
> index 12f9f04ba0..b25d94e7c7 160000
> --- a/meson
> +++ b/meson
> @@ -1 +1 @@
> -Subproject commit 12f9f04ba0decfda425dbbf9a501084c153a2d18
> +Subproject commit b25d94e7c77fda05a7fdfe8afe562cf9760d69da
Unrelated change...
Otherwise (without the submodule change):
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Thanks,
Phil.
- [PATCH v3 0/7] support subsets of scalar crypto extension, liweiwei, 2021/12/30
- [PATCH v3 1/7] target/riscv: rvk: add cfg properties for zbk* and zk*, liweiwei, 2021/12/30
- [PATCH v3 3/7] crypto include/crypto target/arm: move sm4_sbox to crypto, liweiwei, 2021/12/30
- Re: [PATCH v3 3/7] crypto include/crypto target/arm: move sm4_sbox to crypto,
Philippe Mathieu-Daudé <=
- [PATCH v3 6/7] disas/riscv.c: rvk: add disas support for Zbk* and Zk* instructions, liweiwei, 2021/12/30
- [PATCH v3 5/7] target/riscv: rvk: add CSR support for Zkr, liweiwei, 2021/12/30
- [PATCH v3 7/7] target/riscv: rvk: expose zbk* and zk* properties, liweiwei, 2021/12/30
- [PATCH v3 2/7] target/riscv: rvk: add implementation of instructions for Zbk*, liweiwei, 2021/12/30
- [PATCH v3 4/7] target/riscv: rvk: add implementation of instructions for Zk*, liweiwei, 2021/12/30