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

# RSAENH\_CPVerifySignature(3w)

## NAME

**RSAENH\_CPVerifySignature** (RSAENH.@)

## SYNOPSIS

BOOL RSAENH\_CPVerifySignature\
  (\
   HCRYPTPROV  *hProv*,\
   HCRYPTHASH  *hHash*,\
   CONST BYTE\* *pbSignature*,\
   DWORD       *dwSigLen*,\
   HCRYPTKEY   *hPubKey*,\
   LPCWSTR     *sDescription*,\
   DWORD       *dwFlags*\
  )

## DESCRIPTION

Verify the signature of a hash object.

## PARAMS

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

*hHash* **\[In\]**  The hash for which the signature is verified.

*pbSignature* **\[In\]**  The binary signature.

*dwSigLen* **\[In\]**  Length of the signature **BLOB**.

*hPubKey* **\[In\]**  Public key used to verify the signature.

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

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

## RETURNS

**Success:** **TRUE** (Signature is valid)

**Failure:** **FALSE** (GetLastError() == **NTE\_BAD\_SIGNATURE**, if signature is invalid)

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