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

# RSAENH\_CPCreateHash(3w)

## NAME

**RSAENH\_CPCreateHash** (RSAENH.@)

## SYNOPSIS

BOOL RSAENH\_CPCreateHash\
  (\
   HCRYPTPROV  *hProv*,\
   ALG\_ID      *Algid*,\
   HCRYPTKEY   *hKey*,\
   DWORD       *dwFlags*,\
   HCRYPTHASH\* *phHash*\
  )

## DESCRIPTION

CPCreateHash creates and initializes a new hash object.

## PARAMS

*hProv* **\[In\]**  Handle to the key container to which the new hash will belong.

*Algid* **\[In\]**  Identifies the hash algorithm, which will be used for the hash.

*hKey* **\[In\]**  Handle to a session key applied for keyed hashes.

*dwFlags* **\[In\]**  Currently no flags defined. Must be zero.

*phHash* **\[Out\]**  Points to the location where a handle to the new hash will be stored.

## RETURNS

**Success:** **TRUE**

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

## NOTES

*hKey* is a handle to a session key applied in keyed hashes like **MAC** and **HMAC**. If a normal hash object is to be created (like e.g. **MD2** or **SHA1**) *hKey* must be zero.

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