|
template<class _Traits , class _Ax > |
static DWORD | CertGetNameStringA (PCCERT_CONTEXT pCertContext, DWORD dwType, DWORD dwFlags, void *pvTypePara, std::basic_string< char, _Traits, _Ax > &sNameString) |
| Obtains the subject or issuer name from a certificate CERT_CONTEXT structure and stores it in a std::wstring string.
|
|
template<class _Traits , class _Ax > |
static DWORD | CertGetNameStringW (PCCERT_CONTEXT pCertContext, DWORD dwType, DWORD dwFlags, void *pvTypePara, std::basic_string< wchar_t, _Traits, _Ax > &sNameString) |
| Obtains the subject or issuer name from a certificate CERT_CONTEXT structure and stores it in a std::wstring string.
|
|
template<class _Ty , class _Ax > |
static BOOL WINAPI | CertGetCertificateContextProperty (PCCERT_CONTEXT pCertContext, DWORD dwPropId, std::vector< _Ty, _Ax > &aData) |
| Retrieves the information contained in an extended property of a certificate context.
|
|
template<class _Ty , class _Ax > |
static BOOL | CryptGetHashParam (HCRYPTHASH hHash, DWORD dwParam, std::vector< _Ty, _Ax > &aData, DWORD dwFlags) |
| Retrieves data that governs the operations of a hash object. The actual hash value can be retrieved by using this function.
|
|
template<class T > |
static BOOL | CryptGetHashParam (HCRYPTHASH hHash, DWORD dwParam, T &data, DWORD dwFlags) |
| Retrieves data that governs the operations of a hash object. The actual hash value can be retrieved by using this function.
|
|
template<class _Ty , class _Ax > |
static BOOL | CryptGetKeyParam (HCRYPTKEY hKey, DWORD dwParam, std::vector< _Ty, _Ax > &aData, DWORD dwFlags) |
| Retrieves data that governs the operations of a key.
|
|
template<class T > |
static BOOL | CryptGetKeyParam (HCRYPTKEY hKey, DWORD dwParam, T &data, DWORD dwFlags) |
| Retrieves data that governs the operations of a key.
|
|
template<class _Ty , class _Ax > |
static BOOL | CryptExportKey (HCRYPTKEY hKey, HCRYPTKEY hExpKey, DWORD dwBlobType, DWORD dwFlags, std::vector< _Ty, _Ax > &aData) |
| Exports a cryptographic key or a key pair from a cryptographic service provider (CSP) in a secure manner.
|
|
template<class _Ty , class _Ax > |
static BOOL | CryptEncrypt (HCRYPTKEY hKey, HCRYPTHASH hHash, BOOL Final, DWORD dwFlags, std::vector< _Ty, _Ax > &aData) |
| Encrypts data.
|
|
template<class _Ty , class _Ax > |
static BOOL | CryptDecrypt (HCRYPTKEY hKey, HCRYPTHASH hHash, BOOL Final, DWORD dwFlags, std::vector< _Ty, _Ax > &aData) |
| Decrypts data previously encrypted by using the CryptEncrypt function.
|
|
static BOOL | CertGetCertificateChain (HCERTCHAINENGINE hChainEngine, PCCERT_CONTEXT pCertContext, LPFILETIME pTime, HCERTSTORE hAdditionalStore, PCERT_CHAIN_PARA pChainPara, DWORD dwFlags, LPVOID pvReserved, winstd::cert_chain_context &ctx) |
| The CertGetCertificateChain function builds a certificate chain context starting from an end certificate and going back, if possible, to a trusted root certificate.
|
|
static BOOL | CryptAcquireContextA (winstd::crypt_prov &prov, LPCSTR szContainer, LPCSTR szProvider, DWORD dwProvType, DWORD dwFlags) |
| Acquires the cryptographic context.
|
|
static BOOL | CryptAcquireContextW (winstd::crypt_prov &prov, LPCWSTR szContainer, LPCWSTR szProvider, DWORD dwProvType, DWORD dwFlags) |
| Acquires the cryptographic context.
|
|
static BOOL | CryptCreateHash (HCRYPTPROV hProv, ALG_ID Algid, HCRYPTKEY hKey, DWORD dwFlags, winstd::crypt_hash &hash) |
| Creates the hash context.
|
|
static BOOL | CryptGenKey (HCRYPTPROV hProv, ALG_ID Algid, DWORD dwFlags, winstd::crypt_key &key) |
| Generates the key.
|
|
static bool | CryptImportKey (HCRYPTPROV hProv, __in_bcount(dwDataLen) LPCBYTE pbData, DWORD dwDataLen, HCRYPTKEY hPubKey, DWORD dwFlags, winstd::crypt_key &key) |
| Imports the key.
|
|
static bool | CryptImportPublicKeyInfo (HCRYPTPROV hCryptProv, DWORD dwCertEncodingType, PCERT_PUBLIC_KEY_INFO pInfo, winstd::crypt_key &key) |
| Imports the public key.
|
|
static bool | CryptDeriveKey (HCRYPTPROV hProv, ALG_ID Algid, HCRYPTHASH hBaseData, DWORD dwFlags, winstd::crypt_key &key) |
| Generates cryptographic session keys derived from a base data value.
|
|