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

# RSAENH\_CPDeriveKey(3w)

## NAME

**RSAENH\_CPDeriveKey** (RSAENH.@)

## SYNOPSIS

BOOL RSAENH\_CPDeriveKey\
  (\
   HCRYPTPROV *hProv*,\
   ALG\_ID     *Algid*,\
   HCRYPTHASH *hBaseData*,\
   DWORD      *dwFlags*,\
   HCRYPTKEY\* *phKey*\
  )

## DESCRIPTION

Derives a key from a hash value.

## PARAMS

*hProv* **\[In\]**  Key container for which a key is to be generated.

*Algid* **\[In\]**  Crypto algorithm identifier for the key to be generated.

*hBaseData* **\[In\]**  Hash from whose value the key will be derived.

*dwFlags* **\[In\]**  See Notes.

*phKey* **\[Out\]**  The generated key.

## RETURNS

**Success:** **TRUE**

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

## NOTES

Defined flags:

**-** CRYPT\_EXPORTABLE: Key can be exported.

**-** CRYPT\_NO\_SALT: No salt is used for **40** bit keys.

**-** CRYPT\_CREATE\_SALT: Use remaining bits as 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"**.
