CryptXmlDllEncodeAlgorithm callback function (cryptxml.h)

The CryptXmlDllEncodeAlgorithm function encodes SignatureMethod or DigestMethod elements for agile algorithms with default parameters.

The CryptXmlDllEncodeAlgorithm function is exposed through the exported CryptXmlDllGetInterface function.

Syntax

CryptXmlDllEncodeAlgorithm Cryptxmldllencodealgorithm;

HRESULT Cryptxmldllencodealgorithm(
  [in]      const CRYPT_XML_ALGORITHM_INFO *pAlgInfo,
            CRYPT_XML_CHARSET dwCharset,
  [in, out] void *pvCallbackState,
  [in]      PFN_CRYPT_XML_WRITE_CALLBACK pfnWrite
)
{...}

Parameters

[in] pAlgInfo

A pointer to a CRYPT_XML_ALGORITHM_INFO structure.

dwCharset

A CRYPT_XML_CHARSET value that specifies the character set of the encoded XML.

[in, out] pvCallbackState

A pointer to an argument that is passed to the callback function pointed to by the pfnWrite parameter.

[in] pfnWrite

A PFN_CRYPT_XML_WRITE_CALLBACK callback function that receives the encoded XML.

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