Trait crypto_bigint::InvMod

source ·
pub trait InvMod: Sized {
    // Required method
    fn inv_mod(&self, p: &Self) -> CtOption<Self>;
}
Expand description

Compute 1 / self mod p.

Required Methods§

source

fn inv_mod(&self, p: &Self) -> CtOption<Self>

Compute 1 / self mod p.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl InvMod for BoxedUint

Available on crate feature alloc only.
source§

impl<const LIMBS: usize, const UNSAT_LIMBS: usize> InvMod for Uint<LIMBS>
where Odd<Self>: PrecomputeInverter<Inverter = BernsteinYangInverter<LIMBS, UNSAT_LIMBS>>,