Home GnuPG

sm4: fix lookup-table prefetching

Description

sm4: fix lookup-table prefetching

* cipher/sm4.c (sm4_expand_key): Prefetch sbox table.
(sm4_get_crypt_blk1_16_fn): Do not prefetch sbox table.
(sm4_expand_key, _gcry_sm4_ctr_enc, _gcry_sm4_cbc_dec)
(_gcry_sm4_cfb_dec): Prefetch sbox table if table look-up
implementation is used.
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Oct 23 2022, 4:05 PM
Parents
rC6475d0915ffe: camellia: accelerate ECB (for benchmarking)
Branches
Unknown
Tags
Unknown