mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
update comment to reflect new sanity check
This commit is contained in:
@@ -964,7 +964,7 @@ int wolfcrypt_mp_invmod(mp_int * a, mp_int * b, mp_int * c)
|
||||
int mp_invmod (mp_int * a, mp_int * b, mp_int * c)
|
||||
#endif
|
||||
{
|
||||
/* b cannot be negative */
|
||||
/* b cannot be negative or zero, and can not divide by 0 (1/a mod b) */
|
||||
if (b->sign == MP_NEG || mp_iszero(b) == MP_YES || mp_iszero(a) == MP_YES) {
|
||||
return MP_VAL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user