Skip to content

Commit e7d801e

Browse files
authored
Merge pull request wolfSSL#8228 from douzzer/20241126-WC_NO_COMPAT_AES_BLOCK_SIZE
20241126-WC_NO_COMPAT_AES_BLOCK_SIZE
2 parents 70d5954 + c6df620 commit e7d801e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

wolfssl/wolfcrypt/aes.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,15 @@ enum {
189189
#endif
190190

191191
WC_AES_BLOCK_SIZE = 16,
192-
#ifndef OPENSSL_COEXIST
192+
#ifdef OPENSSL_COEXIST
193+
/* allow OPENSSL_COEXIST applications to detect absence of AES_BLOCK_SIZE
194+
* and presence of WC_AES_BLOCK_SIZE.
195+
*
196+
* if WC_NO_COMPAT_AES_BLOCK_SIZE is defined, WC_AES_BLOCK_SIZE is
197+
* available, otherwise AES_BLOCK_SIZE is available.
198+
*/
199+
#define WC_NO_COMPAT_AES_BLOCK_SIZE
200+
#else
193201
#define AES_BLOCK_SIZE WC_AES_BLOCK_SIZE
194202
#endif
195203

0 commit comments

Comments
 (0)