10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::crypto::KeyFactory Class Referenceabstract

#include <KeyFactory.h>

Detailed Description

Creates cryptographical keys.

Inheritance diagram for tenduke::crypto::KeyFactory:
tenduke::crypto::RSAKeyFactory tenduke::test::mocks::KeyFactoryMock tenduke::crypto::libcrypto::LibcryptoRSAKeyFactory

Public Member Functions

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::PublicKeypublicKeyFromModuloAndExponent (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

◆ publicKeyFromModuloAndExponent()

virtual std::unique_ptr< tenduke::crypto::PublicKey > tenduke::crypto::KeyFactory::publicKeyFromModuloAndExponent ( 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 tenduke::crypto::libcrypto::LibcryptoRSAKeyFactory.

◆ publicKeyFromPEM()

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

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

Parameters
publicKeyAsPEM-
Returns
-

Implemented in tenduke::crypto::libcrypto::LibcryptoRSAKeyFactory.


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