33 #ifndef _IDENTT_CRYPTO_CRYPTO_TRAITS_HPP_ 34 #define _IDENTT_CRYPTO_CRYPTO_TRAITS_HPP_ 43 using pointer = std::shared_ptr<CryptoBase>;
55 static pointer
Create(
const std::string ctype)
58 throw ::identt::BadCodeException(
"Bogus Algo");
74 static pointer
CreateFromSeed(
const std::string ctype,
const std::string& seed)
77 throw ::identt::BadCodeException(
"Bogus Algo");
96 static pointer
Create(
const std::string ctype,
unsigned int scope,
const std::string& key)
99 throw ::identt::BadCodeException(
"Bogus Algo");
118 static pointer
Create(
const std::string ctype,
const std::string& pkey,
const std::string& skey)
121 throw ::identt::BadCodeException(
"Bogus Algo");
Definition: CryptoTraits.hpp:41
static const std::string GetAlgo()
GetAlgo : get key algo.
Definition: Ed25519.cc:43
static pointer Create(const std::string ctype)
Create : create new keys.
Definition: CryptoTraits.hpp:55
static pointer CreateFromSeed(const std::string ctype, const std::string &seed)
CreateFromSeed : create from seed.
Definition: CryptoTraits.hpp:74
Definition: CryptoBase.hpp:49
static pointer Create(const std::string ctype, const std::string &pkey, const std::string &skey)
Create : only operator.
Definition: CryptoTraits.hpp:118
static pointer Create(const std::string ctype, unsigned int scope, const std::string &key)
Create : create single purpose key.
Definition: CryptoTraits.hpp:96