17 const byte *staticOtherPublicKey,
const byte *ephemeralOtherPublicKey,
20 return d1.
Agree(agreedValue, staticSecretKey, staticOtherPublicKey, validateStaticOtherPublicKey)
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 from your private keys and couterparty's public keys, return false in case of fai...
virtual unsigned int AgreedValueLength() const =0
return length of agreed value produced
virtual bool Agree(byte *agreedValue, const byte *privateKey, const byte *otherPublicKey, bool validateOtherPublicKey=true) const =0
derive agreed value from your private key and couterparty's public key, return false in case of failu...