Skip to main content

totient

Function totient 

Source
pub(crate) fn totient(
    primes: &[Odd<BoxedUint>],
    bits: u32,
) -> Result<Zeroizing<BoxedUint>>
Expand description

Compute φ(n) = ∏(p_i - 1) at the public modulus precision for non-CRT operations.

The factors must belong to a valid RSA key; then every partial product is below n.