The CryptVerifyDetachedMessageHash function verifies a detached hash.
BOOL CryptVerifyDetachedMessageHash( PCRYPT_HASH_MESSAGE_PARA pHashPara, BYTE *pbDetachedHashBlob, DWORD cbDetachedHashBlob, DWORD cToBeHashed, const BYTE *  rgpbToBeHashed, DWORD  rgcbToBeHashed, BYTE *pbComputedHash, DWORD *pcbComputedHash );
A pointer to a CRYPT_HASH_MESSAGE_PARA structure containing the hash parameters.
A pointer to the encoded, detached hash.
The size, in bytes, of the detached hash.
Number of elements in the rgpbToBeHashed and rgcbToBeHashed arrays.
Array of pointers to content buffers to be hashed.
Array of sizes, in bytes, for the content buffers pointed to by the elements of the rgcbToBeHashed array.
A pointer to a buffer to receive the computed hash.
This parameter can be NULL if the newly created hash is not needed for additional processing, or to set the size of the hash for memory allocation purposes. For more information, see Retrieving Data of Unknown Length.
A pointer to a DWORD specifying the size, in bytes, of the pbComputedHash buffer. When the function returns, this DWORD contains the size, in bytes, of the created hash. The hash will not be returned if this parameter is NULL.
If the function succeeds, the return value is nonzero (TRUE).
If the function fails, the return value is zero (FALSE).
For extended error information, call GetLastError.
The following lists the error codes most commonly returned by the GetLastError function.
||Not a hashed cryptographic message.|
||The message encoding type is not valid. Currently only PKCS_7_ASN_ENCODING is supported. The cbSize in *pHashPara is not valid.|
||If the buffer specified by the pbComputedHash parameter is not large enough to hold the returned data, the function sets the ERROR_MORE_DATA code, and stores the required buffer size, in bytes, into the variable pointed to by pcbComputedHash.|
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|