42 #ifndef _DWMAUTHECDHAGREEMENT_HH_ 43 #define _DWMAUTHECDHAGREEMENT_HH_ 45 #include <cryptopp/xed25519.h> 46 #include <cryptopp/eccrypto.h> 47 #include <cryptopp/osrng.h> 69 const CryptoPP::SecByteBlock &
Public()
const;
74 const CryptoPP::SecByteBlock &
Private()
const;
86 const CryptoPP::SecByteBlock &
87 TheirPublic(
const CryptoPP::SecByteBlock & theirPub);
103 const CryptoPP::SecByteBlock &
AgreedKey()
const;
106 CryptoPP::AutoSeededRandomPool _rng;
107 CryptoPP::x25519 _x25519;
108 CryptoPP::SecByteBlock _mypriv;
109 CryptoPP::SecByteBlock _mypub;
110 CryptoPP::SecByteBlock _theirpub;
111 CryptoPP::SecByteBlock _agreedKey;
118 #endif // _DWMAUTHECDHAGREEMENT_HH_ const CryptoPP::SecByteBlock & Private() const
Returns a const reference to the private half of our ECDH key.
const CryptoPP::SecByteBlock & AgreedKey() const
If we stored the public half of the other side's ECDH key with TheirPublic(SecByteBlock &) and then c...
Encapsulates information used in an ECDH key agreement.
Definition: DwmAuthECDHAgreement.hh:57
ECDHAgreement()
constructor.
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.
bool Agree()
Once we have our private and public keys and the other side's public key has been saved with TheirPub...