diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2021-01-21 22:15:57 +0200 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2021-01-26 19:41:10 +0200 |
commit | a14447f8169aff30a49f5c2ab06bd5bbd1cc3531 (patch) | |
tree | 3199058593a1134d4c6c84abe9ca63d86ed4bb21 /cipher/rijndael-internal.h | |
parent | 8d404a629167d67ed56e45de3e65d1e0b7cdeb24 (diff) | |
download | libgcrypt-a14447f8169aff30a49f5c2ab06bd5bbd1cc3531.tar.gz |
rijndael: remove unused use_xxx flags
* cipher/rijndael-internal.h (RIJNDAEL_context_s): Remove unused
'use_padlock', 'use_aesni', 'use_ssse3', 'use_arm_ce', 'use_ppc_crypto'
and 'use_ppc9le_crypto'.
* cipher/rijndael.c (do_setkey): Do not setup 'use_padlock',
'use_aesni', 'use_ssse3', 'use_arm_ce', 'use_ppc_crypto' and
'use_ppc9le_crypto'.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/rijndael-internal.h')
-rw-r--r-- | cipher/rijndael-internal.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/cipher/rijndael-internal.h b/cipher/rijndael-internal.h index 447a773a..7e01f6b0 100644 --- a/cipher/rijndael-internal.h +++ b/cipher/rijndael-internal.h @@ -164,26 +164,10 @@ typedef struct RIJNDAEL_context_s } u2; int rounds; /* Key-length-dependent number of rounds. */ unsigned int decryption_prepared:1; /* The decryption key schedule is available. */ -#ifdef USE_PADLOCK - unsigned int use_padlock:1; /* Padlock shall be used. */ -#endif /*USE_PADLOCK*/ #ifdef USE_AESNI - unsigned int use_aesni:1; /* AES-NI shall be used. */ - unsigned int use_avx:1; /* AVX shall be used. */ - unsigned int use_avx2:1; /* AVX2 shall be used. */ + unsigned int use_avx:1; /* AVX shall be used by AES-NI implementation. */ + unsigned int use_avx2:1; /* AVX2 shall be used by AES-NI implementation. */ #endif /*USE_AESNI*/ -#ifdef USE_SSSE3 - unsigned int use_ssse3:1; /* SSSE3 shall be used. */ -#endif /*USE_SSSE3*/ -#ifdef USE_ARM_CE - unsigned int use_arm_ce:1; /* ARMv8 CE shall be used. */ -#endif /*USE_ARM_CE*/ -#ifdef USE_PPC_CRYPTO - unsigned int use_ppc_crypto:1; /* PowerPC crypto shall be used. */ -#endif /*USE_PPC_CRYPTO*/ -#ifdef USE_PPC_CRYPTO_WITH_PPC9LE - unsigned int use_ppc9le_crypto:1; /* POWER9 LE crypto shall be used. */ -#endif #ifdef USE_S390X_CRYPTO byte km_func; byte km_func_xts; |