10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
WinCNGKey.h
1#ifndef TENDUKE_CRYPTO_WIN_CNG_WINCNGKEY_H
2#define TENDUKE_CRYPTO_WIN_CNG_WINCNGKEY_H
3
4#include "./bcrypt/BCryptKey.h"
5#include <memory>
6
7namespace tenduke { namespace crypto { namespace win { namespace cng {
8
9class WinCNGKey
10{
11public:
12 explicit WinCNGKey(std::unique_ptr<::tenduke::crypto::win::cng::BCryptKey> key) : key(std::move(key))
13 { };;
14
15 ::BCRYPT_KEY_HANDLE getHandle() const
16 {
17 return key->getHandle();
18 };
19
20private:
21 std::unique_ptr<::tenduke::crypto::win::cng::BCryptKey> key;
22};
23
24}}}}
25
26#endif //TENDUKE_CRYPTO_WIN_CNG_WINCNGKEY_H
Cryptography services.
Definition CryptoException.h:7
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4