fn normalize(a: BigInt, n: &BigInt) -> BigInt {
                                let a = a % n;
                                if a.is_negative() {
                                    a + n
                                } else {
                                    a
                                }
                            }
// modular multiplicative inverse
// based on rust-num/num-integer#10, should hopefully be published soon
modular multiplicative inverse
based on rust-num/num-integer#10, should hopefully be published soon
modular multiplicative inverse based on rust - num / num - integer#10 should hopefully be published soon
fn normalize(a: BigInt, n: &BigInt) -> BigInt {
                                let a = a % n;
                                if a.is_negative() {
                                    a + n
                                } else {
                                    a
                                }
                            }
fn normalize ( a : BigInt , n : & BigInt ) -> BigInt { let a = a % n ; if a . is_negative ( ) { a + n } else { a } }
modular multiplicative inverse
based on rust-num/num-integer#10, should hopefully be published soon
modular multiplicative inverse based on rust - num / num - integer#10 should hopefully be published soon
a
BigInt
n
&BigInt