Merge pull request #4554 from SparkiDev/mp_test_32bit
mp_test: when SP_INT_DIGITS is even calc was wrong
This commit is contained in:
commit
607a3bfaa7
@ -36533,7 +36533,7 @@ static int mp_test_mul_sqr(mp_int* a, mp_int* b, mp_int* r1, mp_int* r2,
|
||||
ret = mp_set(a, 1);
|
||||
if (ret != MP_OKAY)
|
||||
return -13149;
|
||||
i = (SP_INT_DIGITS + 1) / 2;
|
||||
i = (SP_INT_DIGITS / 2) + 1;
|
||||
ret = mp_mul_2d(a, i * SP_WORD_SIZE - 1, a);
|
||||
if (ret != MP_OKAY)
|
||||
return -13150;
|
||||
|
Loading…
x
Reference in New Issue
Block a user