CryptGenKey(3w)

CryptGenKey3w

Usage

BOOL CryptGenKey
(
HCRYPTPROV hProv,
ALG_ID Algid,
DWORD dwFlags,
HCRYPTKEY* phKey
)

Overview

Generates a random cryptographic session key or a pub/priv key pair.

Params

hProv [In] Handle to a CSP.

Algid [In] Algorithm to use to make key.

dwFlags [In] Specifies type of key to make.

phKey [In] Address of the handle to which the new key is copied.

Returns

Success: TRUE

Failure: FALSE

Implementation

Declared in "wincrypt.h".

Implemented in "dlls/advapi32/crypt.c".

Debug channel "crypt".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.