Trait crypto_bigint::prelude::Invert

source ·
pub trait Invert: Sized {
    type Output;

    // Required method
    fn invert(&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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<MOD: ResidueParams<LIMBS>, const LIMBS: usize> Invert for Residue<MOD, LIMBS>

§

type Output = CtOption<Residue<MOD, LIMBS>>

source§

impl<MOD: ResidueParams<LIMBS>, const LIMBS: usize> Invert for NonZero<Residue<MOD, LIMBS>>

§

type Output = NonZero<Residue<MOD, LIMBS>>

source§

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