#include "InternalCryptLib.h"\r
#include <openssl/hmac.h>\r
\r
-#define HMAC_SHA256_CTX_SIZE sizeof(void *) * 4 + sizeof(unsigned int) + \\r
- sizeof(unsigned char) * HMAC_MAX_MD_CBLOCK\r
+//\r
+// NOTE: OpenSSL redefines the size of HMAC_CTX at crypto/hmac/hmac_lcl.h\r
+// #define HMAC_MAX_MD_CBLOCK_SIZE 144\r
+//\r
+#define HMAC_SHA256_CTX_SIZE (sizeof(void *) * 4 + sizeof(unsigned int) + \\r
+ sizeof(unsigned char) * 144)\r
\r
/**\r
Retrieves the size, in bytes, of the context buffer required for HMAC-SHA256 operations.\r