Skip to main content

Invert

Trait Invert 

Source
pub trait Invert {
    type Output;

    // Required method
    fn invert(&self) -> Self::Output;

    // Provided method
    fn invert_vartime(&self) -> Self::Output { ... }
}
Expand description

Constant-time inversion.

Required Associated Types§

Source

type Output

Output of the inversion.

Required Methods§

Source

fn invert(&self) -> Self::Output

Computes the inverse.

Provided Methods§

Source

fn invert_vartime(&self) -> Self::Output

Computes the inverse in variable-time.

Implementors§