From e0d32e0688c1bddbfba63f46e486c5ec6b79a9e6 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 7 Oct 2012 08:38:33 +0000 Subject: CryptoPP compilation fixes for gcc 4.7 ( http://forum.mc-server.org/showthread.php?tid=520&pid=4829#pid4829 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@941 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- CryptoPP/eccrypto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CryptoPP/eccrypto.cpp') diff --git a/CryptoPP/eccrypto.cpp b/CryptoPP/eccrypto.cpp index fd8462fd5..922104c4d 100644 --- a/CryptoPP/eccrypto.cpp +++ b/CryptoPP/eccrypto.cpp @@ -435,7 +435,7 @@ template void DL_GroupParameters_EC::Initialize(const OID &oid) StringSource ssG(param.g, true, new HexDecoder); Element G; bool result = GetCurve().DecodePoint(G, ssG, (size_t)ssG.MaxRetrievable()); - SetSubgroupGenerator(G); + this->SetSubgroupGenerator(G); assert(result); StringSource ssN(param.n, true, new HexDecoder); @@ -591,7 +591,7 @@ bool DL_GroupParameters_EC::ValidateElement(unsigned int level, const Elemen if (level >= 2 && pass) { const Integer &q = GetSubgroupOrder(); - Element gq = gpc ? gpc->Exponentiate(this->GetGroupPrecomputation(), q) : ExponentiateElement(g, q); + Element gq = gpc ? gpc->Exponentiate(this->GetGroupPrecomputation(), q) : this->ExponentiateElement(g, q); pass = pass && IsIdentity(gq); } return pass; @@ -629,7 +629,7 @@ void DL_PublicKey_EC::BERDecodePublicKey(BufferedTransformation &bt, bool pa typename EC::Point P; if (!this->GetGroupParameters().GetCurve().DecodePoint(P, bt, size)) BERDecodeError(); - SetPublicElement(P); + this->SetPublicElement(P); } template -- cgit v1.2.3