42 #ifndef _DWMAUTHECDHAGREEMENT_HH_ 43 #define _DWMAUTHECDHAGREEMENT_HH_ 45 #include <cryptopp/eccrypto.h> 67 const CryptoPP::SecByteBlock &
Public()
const;
72 const CryptoPP::SecByteBlock &
Private()
const;
84 const CryptoPP::SecByteBlock &
85 TheirPublic(
const CryptoPP::SecByteBlock & theirPub);
101 const CryptoPP::SecByteBlock &
AgreedKey()
const;
104 CryptoPP::ECDH<CryptoPP::ECP>::Domain _dh;
105 CryptoPP::SecByteBlock _mypriv;
106 CryptoPP::SecByteBlock _mypub;
107 CryptoPP::SecByteBlock _theirpub;
108 CryptoPP::SecByteBlock _agreedKey;
115 #endif // _DWMAUTHECDHAGREEMENT_HH_ const CryptoPP::SecByteBlock & TheirPublic() const
Returns a const reference to the other side's public key.
const CryptoPP::SecByteBlock & Public() const
Returns a const reference to the public half of our ECDH key.
Encapsulates information used in an ECDH key agreement.
Definition: DwmAuthECDHAgreement.hh:55
Definition: DwmAuth.hh:48
ECDHAgreement()
constructor.
const CryptoPP::SecByteBlock & AgreedKey() const
If we stored the public half of the other side's ECDH key with TheirPublic(SecByteBlock &) and then c...
const CryptoPP::SecByteBlock & Private() const
Returns a const reference to the private half of our ECDH key.
bool Agree()
Once we have our private and public keys and the other side's public key has been saved with TheirPub...