I want to implement scalar multiplication in which I have to multiply a point of elliptic curve with a negative number using CRYPTOPP library, but I'm getting an error while doing this.
Am I supposed to take the mod of that negative number manually and then multiply it with the point? or is there any function which will perform that task for me?
ECP::Point ECP::ScalarMultiply(const Point & a,
const Integer & e)const
As the parameter is integer so it should take negative value as well but it is giving an error:
Algebra.cpp CRYPTOPP_ASSERT(expBegin->NotNegative())