pub struct Montgomery32 { /* private fields */ }
Expand description
Montgomery $R=2^{32}
$
use modulo_n_tools::montgomery::{MontgomeryOperation, Montgomery32};
let m = Montgomery32::new(89);
let a = m.powmod(3, 57);
assert_eq!(a, 23);
Trait Implementations§
Source§impl MontgomeryOperation<u32, u64> for Montgomery32
impl MontgomeryOperation<u32, u64> for Montgomery32
Auto Trait Implementations§
impl Freeze for Montgomery32
impl RefUnwindSafe for Montgomery32
impl Send for Montgomery32
impl Sync for Montgomery32
impl Unpin for Montgomery32
impl UnwindSafe for Montgomery32
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