8 #include "signingscheme.h"
12 #include <utility/dllexport.h>
37 bool NAPAPI
verifyMessage(
const std::string& pubkey,
const std::string& message,
ESigningScheme scheme,
const std::string& signature);
46 bool NAPAPI
generateRSAKey(
unsigned int bits, std::string& outPrivKey, std::string& outPubKey);
53 std::string NAPAPI
sha256(
const std::string& str);
60 std::string NAPAPI
encode64(
const std::string& str);
67 std::string NAPAPI
decode64(
const std::string& str);
std::string NAPAPI sha256(const std::string &str)
Generate a SHA256 hash of a string.
bool NAPAPI verifyMessage(const std::string &pubkey, const std::string &message, ESigningScheme scheme, const std::string &signature)
std::string NAPAPI decode64(const std::string &str)
Decode a base64 string.
bool NAPAPI createSignature(const std::string &privkey, const std::string &message, ESigningScheme scheme, std::string &outSignature)
std::string NAPAPI encode64(const std::string &str)
Encode a string to base64.
bool NAPAPI generateRSAKey(unsigned int bits, std::string &outPrivKey, std::string &outPubKey)
Definition: templateapp.h:17
ESigningScheme
Definition: signingscheme.h:14