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

Public Member Functions

 Ed25519 ()
 Ed25519 : constructor. More...
 
 Ed25519 (const std::string &seed)
 Ed25519 : constructor with seed. More...
 
 Ed25519 (const std::string &pubkey_, const std::string &seckey_)
 Ed25519 : constructor with 2 keys. More...
 
 Ed25519 (unsigned int scope_, const std::string &onekey_)
 Ed25519 : constructor with scope and 1 key for verification only. More...
 
 Ed25519 (const Ed25519 &)=delete
 
Ed25519operator= (const Ed25519 &)=delete
 
virtual std::string GetSeed () const override
 GetSeed : return seed of private key. More...
 
virtual std::string GetSignature (const std::string &input) const override
 GetSignature : return signature. More...
 
virtual bool VerifySignature (const std::string &signature, const std::string &input) const override
 VerifySignature : return signature valid status. More...
 
virtual bool Encode (const std::string &input, std::string &output) const override
 Encode : return encoded. More...
 
virtual bool Decode (const std::string &input, std::string &output) const override
 Decode : return decoded. More...
 
- Public Member Functions inherited from identt::crypto::CryptoBase
 CryptoBase ()
 CryptoBase : constructor. More...
 
 CryptoBase (const CryptoBase &)=delete
 CryptoBase : constructor. More...
 
CryptoBaseoperator= (const CryptoBase &)=delete
 
virtual std::string GetPublicKey () const
 GetPublicKey : return public key. More...
 
virtual std::string GetSecretKey () const
 GetSecretKey : return private key. More...
 

Static Public Member Functions

static const std::string GetAlgo ()
 GetAlgo : get key algo. More...
 
- Static Public Member Functions inherited from identt::crypto::CryptoBase
static const std::string GetAlgo ()
 GetAlgo : get key algo. More...
 

Additional Inherited Members

- Protected Attributes inherited from identt::crypto::CryptoBase
unsigned int scope
 
std::string pubkey
 
std::string seckey
 

Constructor & Destructor Documentation

§ Ed25519() [1/4]

identt::crypto::Ed25519::Ed25519 ( )

Ed25519 : constructor.

§ Ed25519() [2/4]

identt::crypto::Ed25519::Ed25519 ( const std::string &  seed)
explicit

Ed25519 : constructor with seed.

Parameters
seedstd::string& seed

§ Ed25519() [3/4]

identt::crypto::Ed25519::Ed25519 ( const std::string &  pubkey_,
const std::string &  seckey_ 
)
explicit

Ed25519 : constructor with 2 keys.

Parameters
pubkey_std::string& public key
seckey_std::string& secret key

§ Ed25519() [4/4]

identt::crypto::Ed25519::Ed25519 ( unsigned int  scope_,
const std::string &  onekey_ 
)
explicit

Ed25519 : constructor with scope and 1 key for verification only.

Ed25519 : constructor with 1 key.

Parameters
scope_unsigned int scope
onekey_std::string& verification or decoding key

Member Function Documentation

§ Decode()

bool identt::crypto::Ed25519::Decode ( const std::string &  input,
std::string &  output 
) const
overridevirtual

Decode : return decoded.

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

Reimplemented from identt::crypto::CryptoBase.

§ Encode()

bool identt::crypto::Ed25519::Encode ( const std::string &  input,
std::string &  output 
) const
overridevirtual

Encode : return encoded.

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

Reimplemented from identt::crypto::CryptoBase.

§ GetAlgo()

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

GetAlgo : get key algo.

Returns
const std::string algo

§ GetSeed()

std::string identt::crypto::Ed25519::GetSeed ( ) const
overridevirtual

GetSeed : return seed of private key.

Returns
std::string

Reimplemented from identt::crypto::CryptoBase.

§ GetSignature()

std::string identt::crypto::Ed25519::GetSignature ( const std::string &  input) const
overridevirtual

GetSignature : return signature.

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

Reimplemented from identt::crypto::CryptoBase.

§ VerifySignature()

bool identt::crypto::Ed25519::VerifySignature ( const std::string &  signature,
const std::string &  input 
) const
overridevirtual

VerifySignature : return signature valid status.

VerifySignature : return signature.

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

Reimplemented from identt::crypto::CryptoBase.


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