pub trait PowBoundedExp<Exponent> {
    // Required method
    fn pow_bounded_exp(&self, exponent: &Exponent, exponent_bits: usize) -> Self;
}
Expand description

Constant-time exponentiation with exponent of a bounded bit size.

Required Methods§

fn pow_bounded_exp(&self, exponent: &Exponent, exponent_bits: usize) -> Self

Raises to the exponent power, with exponent_bits representing the number of (least significant) bits to take into account for the exponent.

NOTE: exponent_bits may be leaked in the time pattern.

Implementors§

§

impl<MOD, const LIMBS: usize> PowBoundedExp<Uint<LIMBS>> for Residue<MOD, LIMBS>where MOD: ResidueParams<LIMBS>,

§

impl<const LIMBS: usize> PowBoundedExp<Uint<LIMBS>> for DynResidue<LIMBS>