64 const std::string & secret);
71 const std::string & secret);
92 #endif // _DWMAUTH_HH_ bool AuthenticateServer(int fd, const PKCrypto::KeyPair &myKeys, const std::string &secret)
Authenticate to a server to which we've connected on socket fd.
Public key crypto definitions.
bool AuthenticateClient(int fd, const PKCrypto::KeyPair &myKeys, const std::string &secret)
Authenticate a client that has connected on the socket fd.
Definition: DwmAuth.hh:48
Symmetric crypto utility definitions.
std::string HexEncodedString(const std::string &s)
Returns a hexadecimal version of s.
std::string Base64Encode(const std::string &s)
Returns a base64-encoded version of s.
std::string GetRandomString(size_t sz)
Returns a random string of length sz.