CryptSIPCreateIndirectData function
The CryptSIPCreateIndirectData function returns a SIP_INDIRECT_DATA structure that contains a hash of the supplied SIP_SUBJECTINFO structure, the digest algorithm, and an encoding attribute. The hash can be used as an indirect reference to the data.
Syntax
BOOL WINAPI CryptSIPCreateIndirectData( _In_ SIP_SUBJECTINFO *pSubjectInfo, _Inout_ DWORD *pcbIndirectData, _Out_ SIP_INDIRECT_DATA *pIndirectData );
Parameters
- pSubjectInfo [in]
-
A pointer to a SIP_SUBJECTINFO structure that contains the subject to which the indirect data reference will point.
- pcbIndirectData [in, out]
-
A pointer to a DWORD value to receive the size of the returned SIP_INDIRECT_DATA structure.
- pIndirectData [out]
-
A pointer to a SIP_INDIRECT_DATA structure to receive the catalog item.
Return value
The return value is TRUE if the function succeeds; otherwise, FALSE.
If this function returns FALSE, additional error information can be obtained by calling the GetLastError function. GetLastError will return one of the following error codes.
| Return code | Description |
|---|---|
|
The file or data format is not correct for the specified subject interface package (SIP) type. |
|
One or more of the parameters are not valid. |
|
There was an error allocating memory. |
|
The specified algorithm is not supported by the SIP. |
|
The subject type is not recognized. |
Remarks
If pcbIndirectData points to a DWORD and pIndirectData points to NULL, the size of the data will be returned in pcbIndirectData.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|