6 #ifndef CRYPTO_WINDOWS_H_
7 #define CRYPTO_WINDOWS_H_
9 #if !_WIN32 && !__CYGWIN__
10 #error You cannot use Windows CryptoAPI on non-Windows platforms
11 #else // _WIN32 || __CYGWIN__
15 typedef struct _Sha2356HmacCtx
21 int_fast8_t Sha256(BYTE
*data
, DWORD len
, BYTE
*hash
);
22 int_fast8_t Sha256Hmac(const BYTE
* key
, BYTE
* restrict data
, DWORD len
, BYTE
* restrict hmac
);
24 /*int_fast8_t Sha256HmacInit(Sha256HmacCtx *Ctx, BYTE *key, uint8_t keySize);
25 int_fast8_t Sha256HmacUpdate(Sha256HmacCtx *Ctx, BYTE *data, DWORD len);
26 int_fast8_t Sha256HmacFinish(Sha256HmacCtx *Ctx, BYTE *hmac);*/
29 #endif // _WIN32 || __CYGWIN__
30 #endif /* CRYPTO_WINDOWS_H_ */
31 #endif // _CRYPTO_WINDOWS