allow bigger rsa key gen w/o sanity check error on invmod()

This commit is contained in:
toddouska
2015-07-20 16:08:55 -07:00
parent c50f6ba693
commit 922df2cfb3
2 changed files with 2 additions and 2 deletions

View File

@ -955,7 +955,7 @@ top:
/* if not zero goto step 4 */ /* if not zero goto step 4 */
if (mp_iszero (&u) == 0) { if (mp_iszero (&u) == 0) {
if (++loop_check > 1024) { if (++loop_check > 4096) {
res = MP_VAL; res = MP_VAL;
goto LBL_ERR; goto LBL_ERR;
} }

View File

@ -932,7 +932,7 @@ top:
/* if not zero goto step 4 */ /* if not zero goto step 4 */
if (fp_iszero (&u) == FP_NO) { if (fp_iszero (&u) == FP_NO) {
if (++loop_check > 1024) /* bad input */ if (++loop_check > 4096) /* bad input */
return FP_VAL; return FP_VAL;
goto top; goto top;
} }