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