forked from wolfSSL/wolfssl
allow bigger rsa key gen w/o sanity check error on invmod()
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user