Trait crypto_bigint::Square

source ·
pub trait Square {
    // Required method
    fn square(&self) -> Self;
}
Expand description

Support for optimized squaring

Required Methods§

source

fn square(&self) -> Self

Computes the same as self * self, but may be more efficient.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Square for BoxedMontyForm

Available on crate feature alloc only.
source§

impl<MOD: ConstMontyParams<LIMBS>, const LIMBS: usize> Square for ConstMontyForm<MOD, LIMBS>

source§

impl<const LIMBS: usize> Square for MontyForm<LIMBS>