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§
Required Methods§
Sourcefn square_mod(&self, p: &Mod) -> Self::Output
fn square_mod(&self, p: &Mod) -> Self::Output
Compute self * self mod p.