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

# RSAENH\_CPSignHash(3w)

## NAME

**RSAENH\_CPSignHash** (RSAENH.@)

## SYNOPSIS

BOOL RSAENH\_CPSignHash\
  (\
   HCRYPTPROV *hProv*,\
   HCRYPTHASH *hHash*,\
   DWORD      *dwKeySpec*,\
   LPCWSTR    *sDescription*,\
   DWORD      *dwFlags*,\
   BYTE\*      *pbSignature*,\
   DWORD\*     *pdwSigLen*\
  )

## DESCRIPTION

Sign a hash object.

## PARAMS

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

*hHash* **\[In\]**  The hash object to be signed.

*dwKeySpec* **\[In\]**  **AT\_SIGNATURE** or AT\_KEYEXCHANGE: Key used to generate the signature.

*sDescription* **\[In\]**  Should be **NULL** for security reasons.

*dwFlags* **\[In\]**  **0**, **CRYPT\_NOHASHOID** or CRYPT\_X931\_FORMAT: Format of the signature.

*pbSignature* **\[Out\]**  Buffer, to which the signature will be stored. May be **NULL** to query SigLen.

*pdwSigLen* **\[In/Out\]**  Size of the buffer (in), Length of the signature (out).

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