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

# RSAENH\_CPSetKeyParam(3w)

## NAME

**RSAENH\_CPSetKeyParam** (RSAENH.@)

## SYNOPSIS

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

## DESCRIPTION

Set a parameter of a key object.

## PARAMS

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

*hKey* **\[In\]**  The key for which a parameter is to be set.

*dwParam* **\[In\]**  Parameter type. See Notes.

*pbData* **\[In\]**  Pointer to the parameter value.

*dwFlags* **\[In\]**  Currently none 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)

**-** KP\_PERMISSIONS: Or'ed combination of **CRYPT\_ENCRYPT**, **CRYPT\_DECRYPT**, **CRYPT\_EXPORT**, **CRYPT\_READ**, **CRYPT\_WRITE**, **CRYPT\_MAC**

**-** KP\_IV: Initialization vector

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