|
10Duke Enterprise C++ Client
|
#include <LibcryptoPublicKey.h>
Libcrypto-implementation of a public key definition.
Public Member Functions | |
| LibcryptoPublicKey (EVP_PKEY *key, std::string type) | |
| Constructs new instance. | |
| 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. | |
| std::string | toPEM () const override |
| Generates PEM-representation of this key. | |
Public Member Functions inherited from tenduke::crypto::libcrypto::LibcryptoKey | |
| LibcryptoKey (EVP_PKEY *key, std::string type) | |
| Constructs new instance. | |
| EVP_PKEY * | getKey () const |
| Returns the libcrypto-specific pointer to the key. | |
| const std::string & | getType () const |
| Returns type of the key. | |
Additional Inherited Members | |
Protected Attributes inherited from tenduke::crypto::libcrypto::LibcryptoKey | |
| const std::string | type |
| Type of the key. | |
| EVP_PKEY * | key |
| libcurl handle for the key. | |
| tenduke::crypto::libcrypto::LibcryptoPublicKey::LibcryptoPublicKey | ( | EVP_PKEY * | key, |
| std::string | type ) |
Constructs new instance.
| key | the libcrypto handle |
| type | type of the key |
|
overridevirtual |
Creates a tenduke::crypto::MessageDigestVerifier, which uses this key and given algorithm.
| algorithm | algorithm to use |
Implements tenduke::crypto::PublicKey.
|
overridevirtual |
Generates PEM-representation of this key.
Implements tenduke::crypto::PublicKey.