Function creachadair_imath_sys::mp_int_invmod
source · [−]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
.