RSAENH_CPGetKeyParam(3w)

RSAENH_CPGetKeyParam3w

Usage

BOOL RSAENH_CPGetKeyParam
(
HCRYPTPROV hProv,
HCRYPTKEY hKey,
DWORD dwParam,
BYTE* pbData,
DWORD* pdwDataLen,
DWORD dwFlags
)

Overview

Query a key parameter.

Params

hProv [In] The key container, which the key belongs to.

hHash [In] The key object that is to be queried.

dwParam [In] Specifies the parameter that is to be queried.

pbData [In] Pointer to the buffer where the parameter value will be stored.

pdwDataLen [In/Out] I: Buffer length at pbData, O: Length of the parameter value.

dwFlags [In] None currently defined.

Returns

Success: TRUE

Failure: FALSE.

Notes

Defined dwParam types are:

- KP_MODE: Values MODE_CBC, MODE_ECB, MODE_CFB.

- KP_MODE_BITS: Shift width for cipher feedback mode. (Currently ignored by Microsoft(tm) CSP's - always eight)

- KP_PERMISSIONS: Or'ed combination of CRYPT_ENCRYPT, CRYPT_DECRYPT, CRYPT_EXPORT, CRYPT_READ, CRYPT_WRITE, CRYPT_MAC

- KP_IV: Initialization vector.

- KP_KEYLEN: Bitwidth of the key.

- KP_BLOCKLEN: Size of a block cipher block.

- KP_SALT: Salt value.

Implementation

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in "dlls/rsaenh/rsaenh.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.