diff options
author | weidai <weidai11@users.noreply.github.com> | 2007-04-16 00:15:34 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2007-04-16 00:15:34 +0000 |
commit | c46f00c4fad6e39e18ecb442bf7e01544ea1b8ff (patch) | |
tree | 3e2472dbecc5f95a98a2b24afd41631de5a8da26 /dh2.h | |
parent | f651a6502e20766293aa82ef95afef9818240c88 (diff) | |
download | cryptopp-git-c46f00c4fad6e39e18ecb442bf7e01544ea1b8ff.tar.gz |
fix missing function
Diffstat (limited to 'dh2.h')
-rw-r--r-- | dh2.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -12,11 +12,13 @@ NAMESPACE_BEGIN(CryptoPP) class DH2 : public AuthenticatedKeyAgreementDomain { public: - DH2(const SimpleKeyAgreementDomain &domain) + DH2(SimpleKeyAgreementDomain &domain) : d1(domain), d2(domain) {} - DH2(const SimpleKeyAgreementDomain &staticDomain, const SimpleKeyAgreementDomain &ephemeralDomain) + DH2(SimpleKeyAgreementDomain &staticDomain, SimpleKeyAgreementDomain &ephemeralDomain) : d1(staticDomain), d2(ephemeralDomain) {} + CryptoParameters & AccessCryptoParameters() {return d1.AccessCryptoParameters();} + unsigned int AgreedValueLength() const {return d1.AgreedValueLength() + d2.AgreedValueLength();} @@ -48,7 +50,7 @@ public: bool validateStaticOtherPublicKey=true) const; protected: - const SimpleKeyAgreementDomain &d1, &d2; + SimpleKeyAgreementDomain &d1, &d2; }; NAMESPACE_END |