From 445926e60c66a92c6bc6bca6544bc13827241623 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 16 Apr 2007 00:15:34 +0000 Subject: fix missing function git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@297 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- dh2.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'dh2.h') diff --git a/dh2.h b/dh2.h index a8c5fce..af9d342 100644 --- a/dh2.h +++ b/dh2.h @@ -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 -- cgit v1.2.1