CryptXmlDllVerifySignature callback function (cryptxml.h)
The CryptXmlDllVerifySignature function verifies a signature.
The CryptXmlDllVerifySignature function is exposed through the exported CryptXmlDllGetInterface function.
Syntax
CryptXmlDllVerifySignature Cryptxmldllverifysignature;
HRESULT Cryptxmldllverifysignature(
[in] const CRYPT_XML_ALGORITHM *pSignatureMethod,
[in] BCRYPT_KEY_HANDLE hKey,
[in] const BYTE *pbInput,
[in] ULONG cbInput,
[in] const BYTE *pbSignature,
[in] ULONG cbSignature
)
{...}
Parameters
[in] pSignatureMethod
A pointer to a CRYPT_XML_ALGORITHM structure that specifies the algorithm.
[in] hKey
A handle to the public key.
[in] pbInput
A pointer to a buffer that contains the signed data. The cbInput parameter contains the size of this buffer.
[in] cbInput
The size, in bytes, of the buffer pointed to by the pbInput parameter.
[in] pbSignature
A pointer to a buffer that contains the signature value to be verified. The cbSignature parameter contains the size of this buffer.
[in] cbSignature
The size, in bytes, of the pbSignature buffer.
Return value
If the function succeeds, the function returns zero.
If the function fails, it returns an HRESULT value that indicates the error.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | cryptxml.h |