This commit is contained in:
Juliusz Sosinowicz
2021-10-18 15:19:43 +02:00
parent 1d5f4a6664
commit df1d817f1f

View File

@ -1430,7 +1430,7 @@ int fp_invmod_mont_ct(fp_int *a, fp_int *b, fp_int *c, fp_digit mp)
fp_int* pre;
#endif
if ((a->used * 2 > FP_MAX_BITS) || (b->used * 2 > FP_MAX_BITS)) {
if ((a->used * 2 > FP_SIZE) || (b->used * 2 > FP_SIZE)) {
return FP_VAL;
}