31 #ifndef BASELIB_SECURITY_SIGN_H_ 32 #define BASELIB_SECURITY_SIGN_H_ 34 #include "../Exception.h" 35 #include <gnutls/gnutls.h> 36 #include <gnutls/abstract.h> 61 gnutls_privkey_t _privateKey =
nullptr;
62 gnutls_pubkey_t _publicKey =
nullptr;
70 Sign(
const std::string& privateKey,
const std::string& publicKey);
80 std::vector<char> sign(
const std::vector<char>& data);
90 bool verify(
const std::vector<char>& data,
const std::vector<char>& signature);
93 typedef std::shared_ptr<Sign>
PSign;
Definition: BaseLib.cpp:34
SignException(std::string message)
Definition: Sign.h:55
Exception class for GnuTls.
Definition: Sign.h:52
std::shared_ptr< Sign > PSign
Definition: Sign.h:93
Base class for all exceptions defined in Homegear.
Definition: Exception.h:41