10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
NCryptProvider.h
1#ifndef TENDUKE_CRYPT_WIN_CNG_NCRYPTPROVIDER_H
2#define TENDUKE_CRYPT_WIN_CNG_NCRYPTPROVIDER_H
3
4#include <windows.h>
5
6#include "./NCryptHandle.h"
7#include "./NCryptKey.h"
8
9#include <memory>
10
11namespace tenduke { namespace crypto { namespace win { namespace cng {
12
13class NCryptProvider : public ::tenduke::crypto::win::cng::NCryptHandle<::NCRYPT_PROV_HANDLE>
14{
15public:
16 explicit NCryptProvider(const LPCWSTR providerName);
17
18 std::unique_ptr<::tenduke::crypto::win::cng::NCryptKey> importKeyFromPEM(
19 const char * pem,
20 LPCWSTR blobType,
21 ::DWORD flags
22 ) const;
23};
24
25
26}}}}
27
28#endif //TENDUKE_CRYPT_WIN_CNG_NCRYPTPROVIDER_H
Definition NCryptHandle.h:13
Cryptography services.
Definition CryptoException.h:7
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4