CryptXmlDllCreateKey callback function (cryptxml.h)
the CryptXmlDllCreateKey function parses the KeyValue element and creates a Cryptography API: Next Generation (CNG) BCrypt key handle to verify a signature.
Syntax
CryptXmlDllCreateKey Cryptxmldllcreatekey;
HRESULT Cryptxmldllcreatekey(
[in] const CRYPT_XML_BLOB *pEncoded,
[out] BCRYPT_KEY_HANDLE *phKey
)
{...}
Parameters
[in] pEncoded
A pointer to a CRYPT_XML_BLOB structure that contains the KeyValue element.
[out] phKey
A pointer to a BCRYPT_KEY_HANDLE variable that receives the handle of the key used to verify the signature.
When CryptXML has finished using the key, CryptXML frees it by calling the BCryptDestroyKey function.
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 |