[PATCH v2 3/3] Add SM4 ARMv9 SVE CE assembly implementation

Jussi Kivilinna jussi.kivilinna at iki.fi
Thu Jul 21 10:10:36 CEST 2022


Hello,

On 21.7.2022 9.32, Tianjia Zhang via Gcrypt-devel wrote:
> * cipher/Makefile.am: Add 'sm4-armv9-aarch64-sve-ce.S'.
> * cipher/sm4-armv9-aarch64-sve-ce.S: New.
> * cipher/sm4.c (USE_ARM_SVE_CE): New.
> (SM4_context) [USE_ARM_SVE_CE]: Add 'use_arm_sve_ce'.
> (_gcry_sm4_armv9_sve_ce_crypt, _gcry_sm4_armv9_sve_ce_ctr_enc)
> (_gcry_sm4_armv9_sve_ce_cbc_dec, _gcry_sm4_armv9_sve_ce_cfb_dec)
> (sm4_armv9_sve_ce_crypt_blk1_16): New.
> (sm4_setkey): Enable ARMv9 SVE CE if supported by HW.
> (sm4_get_crypt_blk1_16_fn) [USE_ARM_SVE_CE]: Add ARMv9 SVE CE
> bulk functions.
> (_gcry_sm4_ctr_enc, _gcry_sm4_cbc_dec, _gcry_sm4_cfb_dec)
> [USE_ARM_SVE_CE]: Add ARMv9 SVE CE bulk functions.
> * configure.ac: Add 'sm4-armv9-aarch64-sve-ce.lo'.
> --
> 
> Signed-off-by: Tianjia Zhang <tianjia.zhang at linux.alibaba.com>
> ---
>   cipher/Makefile.am                |   1 +
>   cipher/sm4-armv9-aarch64-sve-ce.S | 967 ++++++++++++++++++++++++++++++
>   cipher/sm4.c                      |  86 +++
>   configure.ac                      |   1 +
>   4 files changed, 1055 insertions(+)
>   create mode 100644 cipher/sm4-armv9-aarch64-sve-ce.S

Patches applied to master.

-Jussi



More information about the Gcrypt-devel mailing list