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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl SquareMod for Limb

Source§

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

Source§

type Output = Uint<LIMBS>