pub enum Algorithm {
Binary,
SlidingWindow(u32),
MontgomeryLadder,
FixedWindow(u32),
Adaptive,
}Expand description
Algorithms available for different operations.
Variants§
Binary
Basic binary exponentiation (square-and-multiply)
SlidingWindow(u32)
Sliding window exponentiation with given window size
MontgomeryLadder
Montgomery ladder (constant-time)
FixedWindow(u32)
Fixed window size (precomputed tables)
Adaptive
Variable algorithms based on input size
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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