pub struct Montgomery<T> { /* private fields */ }
Trait Implementations§
Source§impl<T> MontgomeryOperation<T, T> for Montgomery<T>where
T: Clone + Ord + for<'x> BitAndAssign<&'x T> + for<'x> AddAssign<&'x T> + for<'x> SubAssign<&'x T> + for<'x> MulAssign<&'x T> + for<'x> BitAnd<&'x T, Output = T> + for<'x> Sub<&'x T, Output = T> + for<'x> Rem<&'x T, Output = T> + Neg<Output = T> + Shl<u32, Output = T> + ShrAssign<u32> + ShlAssign<u32> + From<u8>,
impl<T> MontgomeryOperation<T, T> for Montgomery<T>where
T: Clone + Ord + for<'x> BitAndAssign<&'x T> + for<'x> AddAssign<&'x T> + for<'x> SubAssign<&'x T> + for<'x> MulAssign<&'x T> + for<'x> BitAnd<&'x T, Output = T> + for<'x> Sub<&'x T, Output = T> + for<'x> Rem<&'x T, Output = T> + Neg<Output = T> + Shl<u32, Output = T> + ShrAssign<u32> + ShlAssign<u32> + From<u8>,
Source§fn calc_n_prime(n: &T, bits: u32) -> T
fn calc_n_prime(n: &T, bits: u32) -> T
$
NN' \equiv -1 \pmod R
$Auto Trait Implementations§
impl<T> Freeze for Montgomery<T>where
T: Freeze,
impl<T> RefUnwindSafe for Montgomery<T>where
T: RefUnwindSafe,
impl<T> Send for Montgomery<T>where
T: Send,
impl<T> Sync for Montgomery<T>where
T: Sync,
impl<T> Unpin for Montgomery<T>where
T: Unpin,
impl<T> UnwindSafe for Montgomery<T>where
T: UnwindSafe,
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