1 #ifndef _MONO_UTILS_RAND_WINDOWS_H_
2 #define _MONO_UTILS_RAND_WINDOWS_H_
9 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
11 #define MONO_WIN32_CRYPT_PROVIDER_HANDLE HCRYPTPROV
16 #define MONO_WIN32_CRYPT_PROVIDER_HANDLE BCRYPT_ALG_HANDLE
19 MONO_WIN32_CRYPT_PROVIDER_HANDLE
20 mono_rand_win_open_provider (void);
23 mono_rand_win_gen (MONO_WIN32_CRYPT_PROVIDER_HANDLE provider
, guchar
*buffer
, size_t buffer_size
);
26 mono_rand_win_seed (MONO_WIN32_CRYPT_PROVIDER_HANDLE provider
, guchar
*seed
, size_t seed_size
);
29 mono_rand_win_close_provider (MONO_WIN32_CRYPT_PROVIDER_HANDLE provider
);
31 #endif /* HOST_WIN32 */
32 #endif /* _MONO_UTILS_RAND_WINDOWS_H_ */