pub struct FixedBase { /* private fields */ }Expand description
Table T[i][d] = base^{d · 2^{w·i}} for d ∈ [0, 2^w).
Implementations§
Source§impl FixedBase
impl FixedBase
Sourcepub fn new(
modulus: &Modulus,
base: &Residue,
max_bits: u32,
window: u32,
) -> Self
pub fn new( modulus: &Modulus, base: &Residue, max_bits: u32, window: u32, ) -> Self
Builds the table for exponent magnitudes below 2^max_bits.
pub fn max_bits(&self) -> u32
Sourcepub fn size_bytes(&self) -> usize
pub fn size_bytes(&self) -> usize
Approximate memory held by the table, in bytes.
Sourcepub fn pow_vartime(&self, exp: &SBig) -> Result<Residue>
pub fn pow_vartime(&self, exp: &SBig) -> Result<Residue>
Public exponent.
Auto Trait Implementations§
impl Freeze for FixedBase
impl RefUnwindSafe for FixedBase
impl Send for FixedBase
impl Sync for FixedBase
impl Unpin for FixedBase
impl UnsafeUnpin for FixedBase
impl UnwindSafe for FixedBase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more