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§

Source§

impl Invert for BoxedMontyForm

Available on crate feature alloc only.
Source§

impl<MOD: ConstMontyParams<LIMBS>, const LIMBS: usize> Invert for ConstMontyForm<MOD, LIMBS>

Source§

impl<const LIMBS: usize> Invert for FixedMontyForm<LIMBS>