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 "bcrypt.h". https://source.winehq.org/source/include/bcrypt.h

Implemented in "dlls/advapi32/crypt.c". https://source.winehq.org/source/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 Mar 2024.