| 25 | return P.identity ? P : ECP::Point(mr.ConvertOut(P.x), mr.ConvertOut(P.y)); |
| 26 | } |
| 27 | NAMESPACE_END |
| 28 | |
| 29 | ECP::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 | |
| 41 | ECP::ECP(BufferedTransformation &bt) |
| 42 | : m_fieldPtr(new Field(bt)) |
nothing calls this directly
no test coverage detected