identt
Public Types | Static Public Member Functions | List of all members
identt::crypto::CryptoTraits Class Reference

Public Types

using pointer = std::shared_ptr< CryptoBase >
 

Static Public Member Functions

static pointer Create (const std::string ctype)
 Create : create new keys. More...
 
static pointer CreateFromSeed (const std::string ctype, const std::string &seed)
 CreateFromSeed : create from seed. More...
 
static pointer Create (const std::string ctype, unsigned int scope, const std::string &key)
 Create : create single purpose key. More...
 
static pointer Create (const std::string ctype, const std::string &pkey, const std::string &skey)
 Create : only operator. More...
 

Member Function Documentation

§ Create() [1/3]

static pointer identt::crypto::CryptoTraits::Create ( const std::string  ctype)
inlinestatic

Create : create new keys.

Parameters
ctypeconst std::string key algo
Returns
std::shared_ptr<CryptoBase>

§ Create() [2/3]

static pointer identt::crypto::CryptoTraits::Create ( const std::string  ctype,
unsigned int  scope,
const std::string &  key 
)
inlinestatic

Create : create single purpose key.

Parameters
ctypeconst std::string key algo
scopeunsigned int scope
keyconst std::string key
Returns
std::shared_ptr<CryptoBase>

§ Create() [3/3]

static pointer identt::crypto::CryptoTraits::Create ( const std::string  ctype,
const std::string &  pkey,
const std::string &  skey 
)
inlinestatic

Create : only operator.

Parameters
ctypeconst std::string key algo
pkeyconst std::string& public key
skeyconst std::string& private key
Returns
std::shared_ptr<CryptoBase>

§ CreateFromSeed()

static pointer identt::crypto::CryptoTraits::CreateFromSeed ( const std::string  ctype,
const std::string &  seed 
)
inlinestatic

CreateFromSeed : create from seed.

Parameters
ctypeconst std::string key algo
seedconst std::string& seed
Returns
std::shared_ptr<CryptoBase>

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