---
name: "RSAENH_CPGetKeyParam"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/RSAENH_CPGetKeyParam"
---

# RSAENH\_CPGetKeyParam(3w)

## NAME

**RSAENH\_CPGetKeyParam** (RSAENH.@)

## SYNOPSIS

BOOL RSAENH\_CPGetKeyParam\
  (\
   HCRYPTPROV *hProv*,\
   HCRYPTKEY  *hKey*,\
   DWORD      *dwParam*,\
   BYTE\*      *pbData*,\
   DWORD\*     *pdwDataLen*,\
   DWORD      *dwFlags*\
  )

## DESCRIPTION

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"**.
