Cleanup block cipher macros in include/crypto/evp.h

Remove some unneeded deadcode and fix the formatting

Also fix all users of those macros to avoid compilation warnings

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29446)
This commit is contained in:
Matt Caswell
2025-12-18 14:08:29 +00:00
parent d4c1efccab
commit 32eaa748a3
13 changed files with 129 additions and 2329 deletions

View File

@@ -1132,8 +1132,14 @@ TypeNames:
# OpenSSL uses macros extensively. Tell clang-format about them.
TypenameMacros: ['LHASH_OF', 'STACK_OF']
StatementMacros:
- "BLOCK_CIPHER_aead"
- "BLOCK_CIPHER_generic"
- "BLOCK_CIPHER_custom"
- "BLOCK_CIPHER_def_cbc"
- "BLOCK_CIPHER_def_cfb"
- "BLOCK_CIPHER_def_ofb"
- "BLOCK_CIPHER_def_ecb"
- "BLOCK_CIPHER_defs"
- "BLOCK_CIPHER_generic_pack"
- "DECLARE_AES_EVP"
- "DECLARE_ASN1_ALLOC_FUNCTIONS"