Cryptography, Public Key Cryptography, Elliptic Curve, Ecc, Encryption.
EllipticPoint &operator+=(const EllipticPoint &rhs) noexcept { if (IsZero()) { *this = rhs; } else if (rhs.IsZero()) { // since rhs is zero this point does not need to be // modified } else { double L = (rhs.m_y - m_y) / (rhs.m_x - m_x); if (isfinite(L)) { double newX = L * L - m_x - rhs.m_x; m_y =