| certkeyscertkeys — Certificate keys support functions for Microsoft Crypto API. |  | 
Stability Level
Stable, unless otherwise indicated
 
Functions
xmlSecMSCryptoKeyDataGetCert ()
PCCERT_CONTEXT
xmlSecMSCryptoKeyDataGetCert (xmlSecKeyDataPtr data);
Native MSCrypto certificate retrieval from xmlsec keydata. The
returned PCCERT_CONTEXT must not be released by the caller.
Returns
 PCCERT_CONTEXT on success or NULL otherwise.
 
 
xmlSecMSCryptoKeyDataGetKey ()
HCRYPTKEY
xmlSecMSCryptoKeyDataGetKey (xmlSecKeyDataPtr data,
                             xmlSecKeyDataType type);
Native MSCrypto key retrieval from xmlsec keydata. The
returned HKEY must not be destroyed by the caller.
Returns
 HKEY on success or NULL otherwise.
 
 
xmlSecMSCryptoKeyDataGetDecryptKey ()
HCRYPTKEY
xmlSecMSCryptoKeyDataGetDecryptKey (xmlSecKeyDataPtr data);
Native MSCrypto decrypt key retrieval from xmlsec keydata. The
returned HKEY must not be destroyed by the caller.
Returns
 HKEY on success or NULL otherwise.
 
 
xmlSecMSCryptoCertDup ()
PCCERT_CONTEXT
xmlSecMSCryptoCertDup (PCCERT_CONTEXT pCert);
Duplicates the pCert
.
Returns
 pointer to newly created PCCERT_CONTEXT object or
NULL if an error occurs.
 
 
xmlSecMSCryptoCertAdopt ()
xmlSecKeyDataPtr
xmlSecMSCryptoCertAdopt (PCCERT_CONTEXT pCert,
                         xmlSecKeyDataType type);
Creates key data value from the cert.
Returns
 pointer to newly created xmlsec key or NULL if an error occurs.
 
 
xmlSecMSCryptoKeyDataGetMSCryptoProvider ()
HCRYPTPROV
xmlSecMSCryptoKeyDataGetMSCryptoProvider
                               (xmlSecKeyDataPtr data);
Gets crypto provider handle
Returns
 the crypto provider handler or 0 if there is an error.
 
 
xmlSecMSCryptoKeyDataGetMSCryptoKeySpec ()
DWORD
xmlSecMSCryptoKeyDataGetMSCryptoKeySpec
                               (xmlSecKeyDataPtr data);
Gets key spec info.
Returns
 the key spec info from key data
 
 
xmlSecMSCryptoKeyDataGetMSCryptoProviderInfo ()
PCRYPT_KEY_PROV_INFO
xmlSecMSCryptoKeyDataGetMSCryptoProviderInfo
                               (xmlSecKeyDataPtr data);
Gets key provider info.
Returns
 the key provider info.