IWSDSignatureProperty::GetSignedInfoHash method (wsdbase.h)
Gets the hash of a message signature.
Syntax
HRESULT GetSignedInfoHash(
[out] BYTE *pbSignedInfoHash,
[in, out] DWORD *pdwHashSize
);
Parameters
[out] pbSignedInfoHash
A pointer to a buffer that will be filled with the hash of the message signature.
[in, out] pdwHashSize
On input, the size of pbSignedInfoHash in bytes. On output, pdwHashSize contains the actual size of the buffer that was written.
Return value
Possible return values include, but are not limited to, the following.
Return code | Description |
---|---|
|
Method succeeded. |
|
The message is not signed. |
|
pbSignedInfoHash is not large enough to hold the information. pdwHashSize now specifies the required buffer size. |
Remarks
This is the hash of the <SignedInfo> node. The <SignedInfo> xml node contains the SHA1 hashes of the various parts of the signature that is to be included in the signature. The final XML message signature is computed by signing the hash of the <SignedInfo> node with the private key of the signing certificate.
If NULL is passed to pbSignedInfoHash, then GetSignedInfoHash will return the size of the buffer to allocate in the pdwHashSize parameter.
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 | wsdbase.h (include Wsdapi.h) |
DLL | Wsdapi.dll |