modified: myjupyterlab.sh
[GalaxyCodeBases.git] / etc / Windows / vlmcsd_old_vancepym / crypto_windows.h
blob6ab8c98eb32c7edb2eb335ac5c189e1a279d6af2
1 /*
2 * crypto_windows.h
3 */
5 #ifdef _CRYPTO_WINDOWS
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__
13 #include "types.h"
15 typedef struct _Sha2356HmacCtx
17 HCRYPTHASH hHmac;
18 HCRYPTKEY hKey;
19 } Sha256HmacCtx;
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