Skip to main content

MulMod

Trait MulMod 

Source
pub trait MulMod<Rhs = Self, Mod = NonZero<Self>> {
    type Output;

    // Required method
    fn mul_mod(&self, rhs: &Rhs, p: &Mod) -> Self::Output;
}
Expand description

Compute self * rhs mod p.

Required Associated Types§

Source

type Output

Output type.

Required Methods§

Source

fn mul_mod(&self, rhs: &Rhs, p: &Mod) -> Self::Output

Compute self * rhs mod p.

Implementors§

Source§

impl MulMod for BoxedUint

Available on crate feature alloc only.
Source§

impl MulMod for Limb

Source§

impl<const LIMBS: usize> MulMod for Uint<LIMBS>

Source§

type Output = Uint<LIMBS>