forked from wolfSSL/wolfssl
change big int cast in comparison after 64/128 changes
This commit is contained in:
@ -3400,7 +3400,7 @@ int mp_reduce (mp_int * x, mp_int * m, mp_int * mu)
|
|||||||
mp_rshd (&q, um - 1);
|
mp_rshd (&q, um - 1);
|
||||||
|
|
||||||
/* according to HAC this optimization is ok */
|
/* according to HAC this optimization is ok */
|
||||||
if (((unsigned long) um) > (((mp_digit)1) << (DIGIT_BIT - 1))) {
|
if (((mp_word) um) > (((mp_digit)1) << (DIGIT_BIT - 1))) {
|
||||||
if ((res = mp_mul (&q, mu, &q)) != MP_OKAY) {
|
if ((res = mp_mul (&q, mu, &q)) != MP_OKAY) {
|
||||||
goto CLEANUP;
|
goto CLEANUP;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user