For some reason WinCrypt.h is named wincrypt.h under MinGW.
#elif defined(_WIN32)
-#include <WinCrypt.h>
+#include <wincrypt.h>
typedef struct {
HCRYPTPROV hCryptProv;
#elif defined(_WIN32)
/* For Windows: If no other crypto library is provided, we fallback
to the hash functions provided within the Microsoft Windows CryptoAPI */
-# include <WinCrypt.h>
+# include <wincrypt.h>
/* Custom structure in order to store the required provider and hash handle */
struct win32_crypto_hash {
HCRYPTPROV hCryptProv;