10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
LibcryptoPublicKey.h
1
#ifndef TENDUKE_CRYPTO_LIBCRYPTO_LIBCRYPTOPUBLICKEY_H
2
#define TENDUKE_CRYPTO_LIBCRYPTO_LIBCRYPTOPUBLICKEY_H
3
4
#include "./LibcryptoKey.h"
5
#include "crypto/MessageDigest.h"
6
#include "crypto/PublicKey.h"
7
8
#include <string>
9
10
#include <openssl/evp.h>
11
12
namespace
tenduke
{
namespace
crypto
{
namespace
libcrypto
{
13
14
18
class
LibcryptoPublicKey
:
public
::tenduke::crypto::libcrypto::LibcryptoKey
,
public
virtual
tenduke::crypto::PublicKey
19
{
20
public
:
26
LibcryptoPublicKey
(
27
EVP_PKEY *
key
,
28
std::string
type
29
);
30
31
// `tenduke::crypto::PublicKey` interface
32
public
:
33
std::unique_ptr<tenduke::crypto::MessageDigestVerifier>
createMessageDigestVerifier
(
tenduke::crypto::MessageDigest::Algorithm
digestAlgorithm)
const override
;
34
std::string
toPEM
()
const override
;
35
};
36
37
38
}}}
39
40
#endif
// TENDUKE_CRYPTO_LIBCRYPTO_LIBCRYPTOPUBLICKEY_H
tenduke::crypto::MessageDigest::Algorithm
Algorithm
Supported algorithms.
Definition
MessageDigest.h:24
tenduke::crypto::PublicKey
Public key.
Definition
PublicKey.h:16
tenduke::crypto::libcrypto::LibcryptoKey
Libcrypto-implementation of a public key definition.
Definition
LibcryptoKey.h:15
tenduke::crypto::libcrypto::LibcryptoKey::key
EVP_PKEY * key
libcurl handle for the key.
Definition
LibcryptoKey.h:45
tenduke::crypto::libcrypto::LibcryptoKey::type
const std::string type
Type of the key.
Definition
LibcryptoKey.h:43
tenduke::crypto::libcrypto::LibcryptoPublicKey::toPEM
std::string toPEM() const override
Generates PEM-representation of this key.
Definition
LibcryptoPublicKey.cpp:27
tenduke::crypto::libcrypto::LibcryptoPublicKey::createMessageDigestVerifier
std::unique_ptr< tenduke::crypto::MessageDigestVerifier > createMessageDigestVerifier(tenduke::crypto::MessageDigest::Algorithm digestAlgorithm) const override
Creates a tenduke::crypto::MessageDigestVerifier, which uses this key and given algorithm.
Definition
LibcryptoPublicKey.cpp:19
tenduke::crypto::libcrypto::LibcryptoPublicKey::LibcryptoPublicKey
LibcryptoPublicKey(EVP_PKEY *key, std::string type)
Constructs new instance.
Definition
LibcryptoPublicKey.cpp:11
tenduke::crypto::libcrypto
libcrypto based implementations of cryptography services.
Definition
AsymmetricMessageDigest.h:15
tenduke::crypto
Cryptography services.
Definition
AbstractCiphers.h:12
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
services
default
src
crypto
LibcryptoPublicKey.h
Generated by
1.17.0