MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / mod_inverse

Function mod_inverse

src/ciphers/rsa_cipher.rs:68–87  ·  view source on GitHub ↗

Computes the modular multiplicative inverse using the Extended Euclidean Algorithm Finds `x` such that `(a * x) % m == 1` # Arguments `a` - The number to find the inverse of `m` - The modulus # Returns The modular multiplicative inverse of `a` modulo `m`, or `None` if it doesn't exist

(a: i64, m: i64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

make_decrypt_keyMethod · 0.70
generate_keypairFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected