Closed pinkforest closed 2 months ago
I needed it for the same thing (inversion modulo totient), and the answer to that M.SE question is implemented in https://docs.rs/crypto-bigint/latest/crypto_bigint/struct.Uint.html#method.inv_mod . Not sure why it wasn't extended to BoxedUint
, but it's probably quite straightforward.
Indeed that should be easy to port over
Fixed in #594
RSA has
Even
inverse modulus because p-1 for Euler's totientBut only
Odd
is provided via BoxedUint::inv_odd_mod - similar to BY-GCD590
I see @fjarri asked similar stuff before in math stackexchange: