Home GnuPG

sm4: add CTR-mode byte addition for AVX/AVX2/AVX512 implementations

Description

sm4: add CTR-mode byte addition for AVX/AVX2/AVX512 implementations

* cipher/sm4-aesni-avx-amd64.S
(_gcry_sm4_aesni_avx_ctr_enc): Add byte addition fast-path.
* cipher/sm4-aesni-avx2-amd64.S
(_gcry_sm4_aesni_avx2_ctr_enc): Likewise.
* cipher/sm4-gfni-avx2-amd64.S
(_gcry_sm4_gfni_avx2_ctr_enc): Likewise.
* cipher/sm4-gfni-avx512-amd64.S
(_gcry_sm4_gfni_avx512_ctr_enc)
(_gcry_sm4_gfni_avx512_ctr_enc_blk32): Likewise.
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Feb 19 2023, 5:39 PM
Parents
rC8f7f5a9fc639: aes-vaes-avx2: improve case when only CTR needs carry handling
Branches
Unknown
Tags
Unknown