10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
PublicKey.h
1
#ifndef TENDUKE_CRYPTO_PUBLICKEY_H
2
#define TENDUKE_CRYPTO_PUBLICKEY_H
3
4
#include "./MessageDigestVerifier.h"
5
#include "./MessageDigest.h"
6
7
#include <memory>
8
#include <string>
9
10
namespace
tenduke
{
namespace
crypto
{
11
15
class
PublicKey
16
{
17
public
:
18
virtual
~PublicKey
() =
default
;
19
25
virtual
std::unique_ptr<tenduke::crypto::MessageDigestVerifier>
createMessageDigestVerifier
(
tenduke::crypto::MessageDigest::Algorithm
algorithm)
const
= 0;
26
31
virtual
std::string
toPEM
()
const
= 0;
32
};
33
34
35
}}
36
37
#endif
// TENDUKE_CRYPTO_PUBLICKEY_H
tenduke::crypto::MessageDigest::Algorithm
Algorithm
Supported algorithms.
Definition
MessageDigest.h:24
tenduke::crypto::PublicKey
Public key.
Definition
PublicKey.h:16
tenduke::crypto::PublicKey::createMessageDigestVerifier
virtual std::unique_ptr< tenduke::crypto::MessageDigestVerifier > createMessageDigestVerifier(tenduke::crypto::MessageDigest::Algorithm algorithm) const =0
Creates a tenduke::crypto::MessageDigestVerifier, which uses this key and given algorithm.
tenduke::crypto::PublicKey::toPEM
virtual std::string toPEM() const =0
Generates PEM-representation of this key.
tenduke::crypto
Cryptography services.
Definition
AbstractCiphers.h:12
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
core
src
crypto
PublicKey.h
Generated by
1.17.0