Trait crypto_bigint::SquareRoot
source · pub trait SquareRoot {
// Required methods
fn sqrt(&self) -> Self;
fn sqrt_vartime(&self) -> Self;
}
Expand description
Support for calucaling square roots.
Required Methods§
sourcefn sqrt_vartime(&self) -> Self
fn sqrt_vartime(&self) -> Self
Computes floor(sqrt(self))
, variable time in self
.
Object Safety§
This trait is not object safe.
Implementors§
impl SquareRoot for BoxedUint
Available on crate feature
alloc
only.