10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
LibcryptoKey.h
1
#ifndef TENDUKE_CRYPTO_LIBCRYPTO_LIBCRYPTOKEY_H
2
#define TENDUKE_CRYPTO_LIBCRYPTO_LIBCRYPTOKEY_H
3
4
#include <string>
5
6
#include <openssl/evp.h>
7
8
namespace
tenduke
{
namespace
crypto
{
namespace
libcrypto
{
9
10
14
class
LibcryptoKey
15
{
16
public
:
22
LibcryptoKey
(
23
EVP_PKEY *
key
,
24
std::string
type
25
);
26
virtual
~LibcryptoKey
();
27
28
// The key owns the EVP_PKEY: not copyable
29
LibcryptoKey
(
const
LibcryptoKey
&) =
delete
;
30
LibcryptoKey
&operator=(
const
LibcryptoKey
&) =
delete
;
31
32
public
:
37
EVP_PKEY *
getKey
()
const
{
return
key
;}
38
43
const
std::string&
getType
()
const
{
return
type
;}
44
45
protected
:
47
const
std::string
type
;
49
EVP_PKEY *
key
;
50
};
51
52
53
}}}
54
55
#endif
// TENDUKE_CRYPTO_LIBCRYPTO_LIBCRYPTOKEY_H
tenduke::crypto::libcrypto::LibcryptoKey::LibcryptoKey
LibcryptoKey(EVP_PKEY *key, std::string type)
Constructs a new instance.
Definition
LibcryptoKey.cpp:8
tenduke::crypto::libcrypto::LibcryptoKey::getKey
EVP_PKEY * getKey() const
Returns the libcrypto-specific pointer to the key.
Definition
LibcryptoKey.h:37
tenduke::crypto::libcrypto::LibcryptoKey::key
EVP_PKEY * key
libcurl handle for the key.
Definition
LibcryptoKey.h:49
tenduke::crypto::libcrypto::LibcryptoKey::type
const std::string type
Type of the key.
Definition
LibcryptoKey.h:47
tenduke::crypto::libcrypto::LibcryptoKey::getType
const std::string & getType() const
Returns type of the key.
Definition
LibcryptoKey.h:43
tenduke::crypto::libcrypto
libcrypto based implementations of cryptography services.
Definition
LibcryptoKey.h:8
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
default
src
crypto
asymmetric
LibcryptoKey.h
Generated by
1.17.0