Expand Minimize

CryptXmlImportPublicKey function

The CryptXmlImportPublicKey function imports the public key specified by the supplied handle.

Syntax


HRESULT WINAPI CryptXmlImportPublicKey(
  DWORD dwFlags,
  _In_   CRYPT_XML_KEY_VALUE *pKeyValue,
  _Out_  BCRYPT_KEY_HANDLE *phKey
);

Parameters

dwFlags

A DWORD value that controls which CryptXML extensions are loaded. This parameter can be one of the following values.

ValueMeaning
CRYPT_XML_FLAG_DISABLE_EXTENSIONS
0x10000000

Only default implementations for the signature and digest are used. When this flag is set, no other registered extensions are loaded.

 

pKeyValue [in]

A pointer to a CRYPT_XML_KEY_VALUE structure to receive the imported key.

phKey [out]

A pointer to the handle of the key to import.

Return value

If the function succeeds, the function returns zero.

If the function fails, it returns an HRESULT value that indicates the error.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Cryptxml.h

Library

Cryptxml.lib

DLL

Cryptxml.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.