fn fermatInverse(k: BigUint, P: BigUint) -> BigUint {
    let mut two: BigUint;

    let mut pMinus2: BigUint;
    pMinus2.Sub(P, two);
    return BigUint.exp(k, pMinus2, P);
}
// fermatInverse calculates the inverse of GP(k).
fermatInverse calculates the inverse of GP(k).
fermatInverse calculates the inverse of GP ( k ) .
fn fermatInverse(k: BigUint, P: BigUint) -> BigUint {
    let mut two: BigUint;
    let mut pMinus2: BigUint;
    pMinus2.Sub(P, two);
    return BigUint.exp(k, pMinus2, P);
}
fn fermatInverse ( k : BigUint , P : BigUint ) -> BigUint { let mut two : BigUint ; let mut pMinus2 : BigUint ; pMinus2 . Sub ( P , two ) ; return BigUint . exp ( k , pMinus2 , P ) ; }
fermatInverse calculates the inverse of GP(k).
fermatInverse calculates the inverse of GP ( k ) .
k
BigUint
P
BigUint
k
BigUint
P
BigUint