Cleared warning 'Warning: mr hides CryptoPP::ProjectiveDoubling::mr'
parent
f836f741e8
commit
d67d32dab0
6
ecp.cpp
6
ecp.cpp
|
|
@ -89,7 +89,7 @@ bool ECP::DecodePoint(ECP::Point &P, BufferedTransformation &bt, size_t encodedP
|
||||||
Integer p = FieldSize();
|
Integer p = FieldSize();
|
||||||
|
|
||||||
P.identity = false;
|
P.identity = false;
|
||||||
P.x.Decode(bt, GetField().MaxElementByteLength());
|
P.x.Decode(bt, GetField().MaxElementByteLength());
|
||||||
P.y = ((P.x*P.x+m_a)*P.x+m_b) % p;
|
P.y = ((P.x*P.x+m_a)*P.x+m_b) % p;
|
||||||
|
|
||||||
if (Jacobi(P.y, p) !=1)
|
if (Jacobi(P.y, p) !=1)
|
||||||
|
|
@ -298,8 +298,8 @@ struct ProjectivePoint
|
||||||
class ProjectiveDoubling
|
class ProjectiveDoubling
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ProjectiveDoubling(const ModularArithmetic &mr, const Integer &m_a, const Integer &m_b, const ECPPoint &Q)
|
ProjectiveDoubling(const ModularArithmetic &m_mr, const Integer &m_a, const Integer &m_b, const ECPPoint &Q)
|
||||||
: mr(mr), firstDoubling(true), negated(false)
|
: mr(m_mr), firstDoubling(true), negated(false)
|
||||||
{
|
{
|
||||||
CRYPTOPP_UNUSED(m_b);
|
CRYPTOPP_UNUSED(m_b);
|
||||||
if (Q.identity)
|
if (Q.identity)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue