Cryptography, Public Key Cryptography, Elliptic Curve, Ecc, Encryption.
r; EllipticPoint p = *this; if (rhs < 0) { rhs = -rhs; p = -p; } for (int i = 1; i <= rhs; i <<= 1) { if (i & rhs) r += p; p.Double(); } *this = r; return *this; } }; Multiplies the elliptic point by an integer by first checking if the value is negative. If the value is multiplied by a negative