CryptXmlVerifySignature function
The CryptXmlVerifySignature function performs a cryptographic signature validation of a SignedInfo element.
Syntax
HRESULT WINAPI CryptXmlVerifySignature( _In_ HCRYPTXML hSignature, _In_opt_ BCRYPT_KEY_HANDLE hKey, DWORD dwFlags );
Parameters
- hSignature [in]
-
The handle of a Signature element.
- hKey [in, optional]
-
The handle of the public key to use to verify the signature value on the SignedInfo element. This parameter must be NULL for HMAC-based signature algorithms.
- dwFlags
-
A DWORD value that controls which implementations are used. This parameter can be one of the following values.
Value Meaning - CRYPT_XML_FLAG_DISABLE_EXTENSIONS
- 0x10000000
Only default implementations for the signature and digest are used. When this flag is set, no other registered extensions are loaded.
Return value
If the function succeeds, the function returns zero.
If the function fails, it returns an HRESULT value that indicates the error.
Requirements
|
Minimum supported client |
Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|