NAME

CryptGenRandom  (ADVAPI32.@)

SYNOPSIS

 BOOL CryptGenRandom
 (
  HCRYPTPROV hProv,
  DWORD      dwLen,
  BYTE*      pbBuffer
 )

DESCRIPTION

Fills a buffer with cryptographically random bytes.

PARAMS

hProv [In] Handle of a CSP.
dwLen [In] Number of bytes to generate.
pbBuffer [In/Out] Buffer to contain random bytes.

RETURNS

Success: TRUE

Failure: FALSE.

NOTES

pdBuffer must be at least dwLen bytes long.

IMPLEMENTATION

Declared in "include/bcrypt.h". gitlab.winehq.org/wine/wine/blob/master/include/bcrypt.h

Implemented in "dlls/advapi32/crypt.c". gitlab.winehq.org/wine/wine/blob/master/dlls/advapi32/crypt.c

Debug channel "crypt".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Dec 2024.