10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
BCryptKey.h
1
#ifndef TENDUKE_CRYPTO_WIN_CNG_BCRYPTKEY_H
2
#define TENDUKE_CRYPTO_WIN_CNG_BCRYPTKEY_H
3
4
#include <windows.h>
5
#include <bcrypt.h>
6
7
#include "utl/BinaryData.h"
8
#include <memory>
9
10
namespace
tenduke
{
namespace
crypto
{
namespace
win {
namespace
cng {
11
12
class
BCryptKey
13
{
14
public
:
15
explicit
BCryptKey(const ::BCRYPT_KEY_HANDLE handle);
16
17
virtual
~BCryptKey();
18
19
// The instance owns the handle: not copyable
20
BCryptKey(
const
BCryptKey &) =
delete
;
21
BCryptKey &operator=(
const
BCryptKey &) =
delete
;
22
23
static
std::unique_ptr<BCryptKey> fromX509PublicKey(
const
utl::BinaryData &blob);
24
25
::BCRYPT_KEY_HANDLE getHandle()
const
26
{
27
return
handle;
28
}
29
30
private
:
31
::BCRYPT_KEY_HANDLE handle;
32
};
33
34
}}}}
35
36
#endif
//TENDUKE_CRYPTO_WIN_CNG_BCRYPTKEY_H
tenduke::crypto
Cryptography services.
Definition
AbstractCiphers.h:18
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
services
windows
src
crypto
bcrypt
BCryptKey.h
Generated by
1.17.0