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/wincrypt.h". gitlab.winehq.org/wine/wine/blob/master/include/wincrypt.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 Nov 2024.