MCPcopy Create free account
hub / github.com/LUX-Core/lux / ECP

Method ECP

src/cryptopp/ecp.cpp:27–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 return P.identity ? P : ECP::Point(mr.ConvertOut(P.x), mr.ConvertOut(P.y));
26}
27NAMESPACE_END
28
29ECP::ECP(const ECP &ecp, bool convertToMontgomeryRepresentation)
30{
31 if (convertToMontgomeryRepresentation && !ecp.GetField().IsMontgomeryRepresentation())
32 {
33 m_fieldPtr.reset(new MontgomeryRepresentation(ecp.GetField().GetModulus()));
34 m_a = GetField().ConvertIn(ecp.m_a);
35 m_b = GetField().ConvertIn(ecp.m_b);
36 }
37 else
38 operator=(ecp);
39}
40
41ECP::ECP(BufferedTransformation &bt)
42 : m_fieldPtr(new Field(bt))

Callers

nothing calls this directly

Calls 7

GetFieldFunction · 0.85
BERDecodeBitStringFunction · 0.85
EndReachedMethod · 0.80
MessageEndMethod · 0.80
resetMethod · 0.45
ConvertInMethod · 0.45
BERDecodeElementMethod · 0.45

Tested by

no test coverage detected