CryptXmlDigestReference function
The CryptXmlDigestReference function is used by an application to digest the resolved reference. This function applies transforms before updating the digest.
Syntax
HRESULT WINAPI CryptXmlDigestReference( _In_ HCRYPTXML hReference, DWORD dwFlags, _In_ CRYPT_XML_DATA_PROVIDER *pDataProviderIn );
Parameters
- hReference [in]
-
The handle of a Reference element.
- dwFlags
-
Specifies values that control how the process applies transforms.
Currently defined dwFlags are shown in the following table.
Value Meaning - CRYPT_XML_REFERENCE_DATA_TRANSFORMED
- 0x00000001
Specifies that the processing engine will create the digest without applying the transform chain engine.
- pDataProviderIn [in]
-
A pointer to a CRYPT_XML_DATA_PROVIDER structure that specifies the data provider. The CryptXmlDigestReference function always calls the fpnClose function on the data provider.
Return value
If the function succeeds, the function returns zero.
If the function fails, it returns an HRESULT value that indicates the error.
Remarks
When the CRYPT_XML_REFERENCE_DATA_TRANSFORMED flag is set, the processing engine adds received data directly to the digest without applying the transform chain engine.
Requirements
|
Minimum supported client |
Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|