10Duke Scale C++ Client
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
8namespace tenduke { namespace crypto { namespace libcrypto {
9
10
15{
16public:
23 EVP_PKEY * key,
24 std::string type
25 );
26 virtual ~LibcryptoKey();
27
28public:
33 EVP_PKEY * getKey() const {return key;}
34
39 const std::string& getType() const {return type;}
40
41protected:
43 const std::string type;
45 EVP_PKEY * key;
46};
47
48
49}}}
50
51#endif // TENDUKE_CRYPTO_LIBCRYPTO_LIBCRYPTOKEY_H
Libcrypto-implementation of a public key definition.
Definition LibcryptoKey.h:15
EVP_PKEY * getKey() const
Returns the libcrypto-specific pointer to the key.
Definition LibcryptoKey.h:33
EVP_PKEY * key
libcurl handle for the key.
Definition LibcryptoKey.h:45
const std::string type
Type of the key.
Definition LibcryptoKey.h:43
const std::string & getType() const
Returns type of the key.
Definition LibcryptoKey.h:39
libcrypto based implementations of cryptography services.
Definition AsymmetricMessageDigest.h:15
Cryptography services.
Definition CryptoException.h:7
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7