You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clearly what you are doing makes little sense - why do a finite field
powmod in the middle of some elliptic curve calculations?
The reason for this causing a problem is that each MIRACL instance uses a
global internal modulus. See the main miracl structure in miracl.h
/* Montgomery constants */
mr_small ndash;
big modulus;
big pR;
BOOL ACTIVE;
BOOL MONTY;
The call to powmod internally changes this modulus, causing the wrong
modulus to be used subsequently.
So the solution is - just don't do it..
Mike
I just started using miracl to implement ECC, as shown in the picture, why do I get the wrong G after executing powmod()?
The text was updated successfully, but these errors were encountered: