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

# RSAENH\_CPExportKey(3w)

## NAME

**RSAENH\_CPExportKey** (RSAENH.@)

## SYNOPSIS

BOOL RSAENH\_CPExportKey\
  (\
   HCRYPTPROV *hProv*,\
   HCRYPTKEY  *hKey*,\
   HCRYPTKEY  *hPubKey*,\
   DWORD      *dwBlobType*,\
   DWORD      *dwFlags*,\
   BYTE\*      *pbData*,\
   DWORD\*     *pdwDataLen*\
  )

## DESCRIPTION

Export a key into a binary large object (**BLOB**).

## PARAMS

*hProv* **\[In\]**  Key container from which a key is to be exported.

*hKey* **\[In\]**  Key to be exported.

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

*dwBlobType* **\[In\]**  **SIMPLEBLOB**, **PUBLICKEYBLOB** or **PRIVATEKEYBLOB**.

*dwFlags* **\[In\]**  Currently none defined.

*pbData* **\[Out\]**  Pointer to a buffer where the **BLOB** will be written to.

*pdwDataLen* **\[In/Out\]**  I: Size of buffer at *pbData*, O: Size of **BLOB**.

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