pub struct MontParams {
pub n: BigInt,
pub n_limbs: usize,
pub n_inv_neg: u64,
pub r_mod_n: BigInt,
pub r2_mod_n: BigInt,
}Expand description
Parameters for Montgomery modular arithmetic.
Fields§
§n: BigIntThe modulus n.
n_limbs: usizeNumber of limbs.
n_inv_neg: u64-n^{-1} mod 2^64.
r_mod_n: BigIntR = 2^{64*n_limbs} (not stored, implicit). R mod n.
r2_mod_n: BigIntR^2 mod n.
Implementations§
Auto Trait Implementations§
impl Freeze for MontParams
impl RefUnwindSafe for MontParams
impl Send for MontParams
impl Sync for MontParams
impl Unpin for MontParams
impl UnsafeUnpin for MontParams
impl UnwindSafe for MontParams
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