Skip to main content

SquareRoot

Trait SquareRoot 

Source
trait SquareRoot:
    Clone
    + AsRef<[Limb]>
    + AsMut<[Limb]>
    + Zero
    + One
    + NegMod<Output = Self>
    + MulMod<Output = Self>
    + SquareMod<Output = Self>
    + BitOps {
    // Required method
    fn pow_mod(self, exp: Self, modulus: &Odd<Self>) -> Self;
}
Expand description

The required view over a collection of limbs to calculate a square root.

Required Methods§

Source

fn pow_mod(self, exp: Self, modulus: &Odd<Self>) -> Self

Compute $self^{exp} \mod modulus$.

This MUST support $self \ge mmodlus$.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T: Clone + AsRef<[Limb]> + AsMut<[Limb]> + CtAssign + Zero + One + NegMod<Output = Self> + MulMod<Output = Self> + SquareMod<Output = Self> + BitOps> SquareRoot for T