pub trait PowBoundedExp<Exponent> {
// Required method
fn pow_bounded_exp(&self, exponent: &Exponent, exponent_bits: u32) -> Self;
}
Expand description
Constant-time exponentiation with exponent of a bounded bit size.
Required Methods§
sourcefn pow_bounded_exp(&self, exponent: &Exponent, exponent_bits: u32) -> Self
fn pow_bounded_exp(&self, exponent: &Exponent, exponent_bits: u32) -> 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.
Object Safety§
This trait is not object safe.
Implementors§
impl PowBoundedExp<BoxedUint> for BoxedMontyForm
Available on crate feature
alloc
only.