42 #ifndef _DWMAUTHPEERAUTHENTICATOR_HH_ 43 #define _DWMAUTHPEERAUTHENTICATOR_HH_ 81 const std::string & pubKeysPath);
91 std::string & agreedKey);
94 std::string _myPrivKeyPath;
95 std::string _pubKeysPath;
99 BuildIDAndSignature(
const std::string & myId,
102 bool IDAndSigExchange(
int fd,
const std::string & myId,
105 std::string & theirId,
106 std::string & theirIdCrypted,
107 std::string & theirSig);
114 #endif // _DWMAUTHPEERAUTHENTICATOR_HH_ bool Authenticate(int fd, std::string &theirId, std::string &agreedKey)
Authenticate the peer connected to the socket fd.
A simplified peer authenticator.
Definition: DwmAuthPeerAuthenticator.hh:68
Dwm::Auth::ECDHAgreement class definition.
Public key crypto definitions.
Encapsulates information used in an ECDH key agreement.
Definition: DwmAuthECDHAgreement.hh:55
Definition: DwmAuth.hh:48
PeerAuthenticator(const std::string &myPrivKeyPath, const std::string &pubKeysPath)
Construct from a path to our RSA private key and a path to a file containing public keys...
Dwm::Auth::PublicKeysFile class definition.
Encapsulates a readable and writable private key.
Definition: DwmAuthPKCrypto.hh:109