Method Gmp.smpz()->invert()


Method invert

Gmp.mpz invert(int|float|Gmp.mpz x)

Description

Returns the inverse of this mpz value modulo x. The returned value satisfies 0 <= result < x.

Note

Potentially side-channel resilient.

See also

sec_invert, ::invert()