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

# RSAENH\_CPImportKey(3w)

## NAME

**RSAENH\_CPImportKey** (RSAENH.@)

## SYNOPSIS

BOOL RSAENH\_CPImportKey\
  (\
   HCRYPTPROV  *hProv*,\
   CONST BYTE\* *pbData*,\
   DWORD       *dwDataLen*,\
   HCRYPTKEY   *hPubKey*,\
   DWORD       *dwFlags*,\
   HCRYPTKEY\*  *phKey*\
  )

## DESCRIPTION

Import a **BLOB**'ed key into a key container.

## PARAMS

*hProv* **\[In\]**  Key container into which the key is to be imported.

*pbData* **\[In\]**  Pointer to a buffer which holds the **BLOB**.

*dwDataLen* **\[In\]**  Length of data in buffer at *pbData*.

*hPubKey* **\[In\]**  Key used to decrypt sensitive **BLOB** data.

*dwFlags* **\[In\]**  One of: CRYPT\_EXPORTABLE: the imported key is marked exportable.

*phKey* **\[Out\]**  Handle to the imported key.

## RETURNS

**Success:** **TRUE**.

**Failure:** **FALSE**.

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