mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
Fix type name for BCRYPT_ALG_HANDLE in win_fill function
This commit is contained in:
parent
73dbb25242
commit
7f33223496
@ -57,7 +57,7 @@ impl Rng for CryptoRng {
|
|||||||
fn win_fill(buf: &mut [u8]) -> Result<(), ()> {
|
fn win_fill(buf: &mut [u8]) -> Result<(), ()> {
|
||||||
use core::ffi::c_void;
|
use core::ffi::c_void;
|
||||||
|
|
||||||
type BCRYPT_ALG_HANDLE = *mut c_void;
|
type BcryptAlgHandle = *mut c_void;
|
||||||
type NTSTATUS = i32;
|
type NTSTATUS = i32;
|
||||||
|
|
||||||
const BCRYPT_USE_SYSTEM_PREFERRED_RNG: u32 = 0x0000_0002;
|
const BCRYPT_USE_SYSTEM_PREFERRED_RNG: u32 = 0x0000_0002;
|
||||||
@ -65,7 +65,7 @@ fn win_fill(buf: &mut [u8]) -> Result<(), ()> {
|
|||||||
#[link(name = "bcrypt")]
|
#[link(name = "bcrypt")]
|
||||||
extern "system" {
|
extern "system" {
|
||||||
fn BCryptGenRandom(
|
fn BCryptGenRandom(
|
||||||
hAlgorithm: BCRYPT_ALG_HANDLE,
|
hAlgorithm: BcryptAlgHandle,
|
||||||
pbBuffer: *mut u8,
|
pbBuffer: *mut u8,
|
||||||
cbBuffer: u32,
|
cbBuffer: u32,
|
||||||
dwFlags: u32,
|
dwFlags: u32,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user