10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::crypto::PublicKeyFactory Class Referenceabstract

#include <PublicKeyFactory.h>

Detailed Description

Creates cryptographical public keys.

Inheritance diagram for tenduke::crypto::PublicKeyFactory:
tenduke::crypto::libcrypto::LibcryptoKeyFactory tenduke::crypto::win::cng::WinCNGKeyFactory

Public Member Functions

virtual std::unique_ptr< tenduke::crypto::PublicKeypublicKeyFromPEM (const char *publicKeyAsPEM) const =0
 Creates a tenduke::crypto::PublicKey from PEM.
 
virtual std::unique_ptr< tenduke::crypto::PublicKeypublicKeyFromPEM (const std::string &publicKeyAsPEM) const =0
 Creates a tenduke::crypto::PublicKey from PEM.
 
virtual std::unique_ptr< tenduke::crypto::PublicKeypublicRSAKeyFromModuloAndExponent (const tenduke::utl::BinaryData &modulo, const tenduke::utl::BinaryData &exponent) const =0
 Creates a RSA tenduke::crypto::PublicKey from modulo and exponent.
 

Member Function Documentation

◆ publicKeyFromPEM() [1/2]

virtual std::unique_ptr< tenduke::crypto::PublicKey > tenduke::crypto::PublicKeyFactory::publicKeyFromPEM ( const char * publicKeyAsPEM) const
pure virtual

Creates a tenduke::crypto::PublicKey from PEM.

Parameters
publicKeyAsPEMpublic key as PEM. Null-terminated string.
Returns
-

Implemented in LibcryptoKeyFactory, tenduke::crypto::libcrypto::LibcryptoKeyFactory, tenduke::crypto::win::cng::WinCNGKeyFactory, and WinCNGKeyFactory.

◆ publicKeyFromPEM() [2/2]

virtual std::unique_ptr< tenduke::crypto::PublicKey > tenduke::crypto::PublicKeyFactory::publicKeyFromPEM ( const std::string & publicKeyAsPEM) const
pure virtual

Creates a tenduke::crypto::PublicKey from PEM.

Parameters
publicKeyAsPEMpublic key as PEM.
Returns
-

Implemented in LibcryptoKeyFactory, tenduke::crypto::libcrypto::LibcryptoKeyFactory, tenduke::crypto::win::cng::WinCNGKeyFactory, and WinCNGKeyFactory.

◆ publicRSAKeyFromModuloAndExponent()

virtual std::unique_ptr< tenduke::crypto::PublicKey > tenduke::crypto::PublicKeyFactory::publicRSAKeyFromModuloAndExponent ( const tenduke::utl::BinaryData & modulo,
const tenduke::utl::BinaryData & exponent ) const
pure virtual

Creates a RSA tenduke::crypto::PublicKey from modulo and exponent.

Parameters
modulo-
exponent-
Returns
-

Implemented in LibcryptoKeyFactory, and tenduke::crypto::libcrypto::LibcryptoKeyFactory.


The documentation for this class was generated from the following file: