Skip to content

Commit c6df620

Browse files
committed
wolfssl/wolfcrypt/aes.h: #define WC_NO_COMPAT_AES_BLOCK_SIZE in OPENSSL_COEXIST builds. see comment in source code with usage instructions.
1 parent 29dc0f5 commit c6df620

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)