10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
tenduke::crypto::libcrypto::LibcryptoPublicKey Class Reference

#include <LibcryptoPublicKey.h>

Detailed Description

Libcrypto-implementation of a public key definition.

Inheritance diagram for tenduke::crypto::libcrypto::LibcryptoPublicKey:
tenduke::crypto::libcrypto::LibcryptoKey tenduke::crypto::PublicKey

Public Member Functions

 LibcryptoPublicKey (EVP_PKEY *key, std::string type)
 Constructs new instance.
std::unique_ptr< tenduke::crypto::MessageDigestVerifiercreateMessageDigestVerifier (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.

Constructor & Destructor Documentation

◆ LibcryptoPublicKey()

tenduke::crypto::libcrypto::LibcryptoPublicKey::LibcryptoPublicKey ( EVP_PKEY * key,
std::string type )

Constructs new instance.

Parameters
keythe libcrypto handle
typetype of the key

Member Function Documentation

◆ createMessageDigestVerifier()

std::unique_ptr< xdcrypto::MessageDigestVerifier > tenduke::crypto::libcrypto::LibcryptoPublicKey::createMessageDigestVerifier ( tenduke::crypto::MessageDigest::Algorithm algorithm) const
overridevirtual

Creates a tenduke::crypto::MessageDigestVerifier, which uses this key and given algorithm.

Parameters
algorithmalgorithm to use
Returns
-

Implements tenduke::crypto::PublicKey.

◆ toPEM()

std::string tenduke::crypto::libcrypto::LibcryptoPublicKey::toPEM ( ) const
overridevirtual

Generates PEM-representation of this key.

Returns
this key in PEM format

Implements tenduke::crypto::PublicKey.


The documentation for this class was generated from the following files:
  • core/services/default/src/crypto/LibcryptoPublicKey.h
  • core/services/default/src/crypto/LibcryptoPublicKey.cpp