22 bool createSignature(
const std::string& privkey,
const std::string& message,
const std::string& signingScheme, std::string& outSignature);
32 bool verifyMessage(
const std::string& pubkey,
const std::string& message,
const std::string& signingScheme,
const std::string& signature);
41 bool generateRSAKey(
unsigned int bits, std::string& outPrivKey, std::string& outPubKey);
48 std::string
sha256(
const std::string& str);
55 std::string
encode64(
const std::string& str);
62 std::string
decode64(
const std::string& str);
std::string sha256(const std::string &str)
bool verifyMessage(const std::string &pubkey, const std::string &message, const std::string &signingScheme, const std::string &signature)
std::string encode64(const std::string &str)
bool createSignature(const std::string &privkey, const std::string &message, const std::string &signingScheme, std::string &outSignature)
bool generateRSAKey(unsigned int bits, std::string &outPrivKey, std::string &outPubKey)
Definition: templateapp.h:17
std::string decode64(const std::string &str)