Skip to main content

SquareMod

Trait SquareMod 

Source
pub trait SquareMod<Mod = NonZero<Self>> {
    type Output;

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

Compute self * self mod p.

Required Associated Types§

Source

type Output

Output type.

Required Methods§

Source

fn square_mod(&self, p: &Mod) -> Self::Output

Compute self * self mod p.

Implementors§

Source§

impl SquareMod for BoxedUint

Available on crate feature alloc only.
Source§

impl SquareMod for Limb

Source§

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

Source§

type Output = Uint<LIMBS>