pub unsafe extern "C" fn mp_int_invmod(
a: mp_int,
m: mp_int,
c: mp_int,
) -> mp_result
Expand description
Sets c
to the multiplicative inverse of a
modulo m
, if it exists.
The least non-negative representative of the congruence class is computed.
It returns MP_UNDEF
if the inverse does not exist, or MP_RANGE
if a == 0
or m <= 0
.