mirror of
https://github.com/Wind4/vlmcsd.git
synced 2025-05-28 21:54:08 -04:00
vlmcsd-svn812-2015-08-30-Hotbird64
This commit is contained in:
commit
1af203d2a8
133 changed files with 102338 additions and 0 deletions
31
crypto_windows.h
Normal file
31
crypto_windows.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* crypto_windows.h
|
||||
*/
|
||||
|
||||
#ifdef _CRYPTO_WINDOWS
|
||||
#ifndef CRYPTO_WINDOWS_H_
|
||||
#define CRYPTO_WINDOWS_H_
|
||||
|
||||
#if !_WIN32 && !__CYGWIN__
|
||||
#error You cannot use Windows CryptoAPI on non-Windows platforms
|
||||
#else // _WIN32 || __CYGWIN__
|
||||
|
||||
#include "types.h"
|
||||
|
||||
typedef struct _Sha2356HmacCtx
|
||||
{
|
||||
HCRYPTHASH hHmac;
|
||||
HCRYPTKEY hKey;
|
||||
} Sha256HmacCtx;
|
||||
|
||||
int_fast8_t Sha256(BYTE *data, DWORD len, BYTE *hash);
|
||||
int_fast8_t Sha256Hmac(const BYTE* key, BYTE* restrict data, DWORD len, BYTE* restrict hmac);
|
||||
|
||||
/*int_fast8_t Sha256HmacInit(Sha256HmacCtx *Ctx, BYTE *key, uint8_t keySize);
|
||||
int_fast8_t Sha256HmacUpdate(Sha256HmacCtx *Ctx, BYTE *data, DWORD len);
|
||||
int_fast8_t Sha256HmacFinish(Sha256HmacCtx *Ctx, BYTE *hmac);*/
|
||||
|
||||
|
||||
#endif // _WIN32 || __CYGWIN__
|
||||
#endif /* CRYPTO_WINDOWS_H_ */
|
||||
#endif // _CRYPTO_WINDOWS
|
Loading…
Add table
Add a link
Reference in a new issue