identt
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
identt::crypto::CryptoBase Class Reference
Inheritance diagram for identt::crypto::CryptoBase:
identt::crypto::Ed25519 Ed25519_extended

Public Member Functions

 CryptoBase ()
 CryptoBase : constructor. More...
 
 CryptoBase (const CryptoBase &)=delete
 CryptoBase : constructor. More...
 
CryptoBaseoperator= (const CryptoBase &)=delete
 
virtual std::string GetSeed () const
 GetSeed : return seed of private key. More...
 
virtual std::string GetPublicKey () const
 GetPublicKey : return public key. More...
 
virtual std::string GetSecretKey () const
 GetSecretKey : return private key. More...
 
virtual std::string GetSignature (const std::string &input) const
 GetSignature : return signature. More...
 
virtual bool VerifySignature (const std::string &signature, const std::string &input) const
 VerifySignature : return signature valid status. More...
 
virtual bool Encode (const std::string &input, std::string &output) const
 Encode : return encoded. More...
 
virtual bool Decode (const std::string &input, std::string &output) const
 Decode : return decoded. More...
 

Static Public Member Functions

static const std::string GetAlgo ()
 GetAlgo : get key algo. More...
 

Protected Attributes

unsigned int scope
 
std::string pubkey
 
std::string seckey
 

Constructor & Destructor Documentation

§ CryptoBase() [1/2]

identt::crypto::CryptoBase::CryptoBase ( )

CryptoBase : constructor.

§ CryptoBase() [2/2]

identt::crypto::CryptoBase::CryptoBase ( const CryptoBase )
delete

CryptoBase : constructor.

Member Function Documentation

§ Decode()

bool identt::crypto::CryptoBase::Decode ( const std::string &  input,
std::string &  output 
) const
virtual

Decode : return decoded.

Parameters
conststd::string& input
std::string&output
Returns
bool success

Reimplemented in identt::crypto::Ed25519.

§ Encode()

bool identt::crypto::CryptoBase::Encode ( const std::string &  input,
std::string &  output 
) const
virtual

Encode : return encoded.

Parameters
conststd::string& input
std::string&output
Returns
bool success

Reimplemented in identt::crypto::Ed25519.

§ GetAlgo()

const std::string identt::crypto::CryptoBase::GetAlgo ( )
static

GetAlgo : get key algo.

Returns
const std::string algo

§ GetPublicKey()

std::string identt::crypto::CryptoBase::GetPublicKey ( ) const
virtual

GetPublicKey : return public key.

Returns
std::string

§ GetSecretKey()

std::string identt::crypto::CryptoBase::GetSecretKey ( ) const
virtual

GetSecretKey : return private key.

Returns
std::string

§ GetSeed()

std::string identt::crypto::CryptoBase::GetSeed ( ) const
virtual

GetSeed : return seed of private key.

Returns
std::string

Reimplemented in identt::crypto::Ed25519.

§ GetSignature()

std::string identt::crypto::CryptoBase::GetSignature ( const std::string &  input) const
virtual

GetSignature : return signature.

Parameters
conststd::string& input
Returns
std::string

Reimplemented in identt::crypto::Ed25519.

§ VerifySignature()

bool identt::crypto::CryptoBase::VerifySignature ( const std::string &  signature,
const std::string &  input 
) const
virtual

VerifySignature : return signature valid status.

VerifySignature : return signature.

Parameters
conststd::string& signature
conststd::string& input
Returns
bool status

Reimplemented in identt::crypto::Ed25519.


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