20 return d1.
Agree(agreedValue, staticSecretKey, staticOtherPublicKey, validateStaticOtherPublicKey)
virtual unsigned int AgreedValueLength() const =0
Provides the size of the agreed value.
Interface for domains of simple key agreement protocols.
bool Agree(byte *agreedValue, const byte *staticPrivateKey, const byte *ephemeralPrivateKey, const byte *staticOtherPublicKey, const byte *ephemeralOtherPublicKey, bool validateStaticOtherPublicKey=true) const
Derive agreed value.
virtual bool Agree(byte *agreedValue, const byte *privateKey, const byte *otherPublicKey, bool validateOtherPublicKey=true) const =0
Derive agreed value.