Skip to main content

FixedMontyParams

Type Alias FixedMontyParams 

Source
pub type FixedMontyParams<const LIMBS: usize> = MontyParams<Uint<LIMBS>>;
Expand description

Parameters to efficiently go to/from the Montgomery form for an odd modulus provided at runtime.

Aliased Type§

pub struct FixedMontyParams<const LIMBS: usize> { /* private fields */ }

Implementations§

Source§

impl<const LIMBS: usize> FixedMontyParams<LIMBS>

Source

pub const fn new(modulus: Odd<Uint<LIMBS>>) -> Self

Instantiates a new set of MontyParams representing the given odd modulus.

Source§

impl<const LIMBS: usize> FixedMontyParams<LIMBS>

Source

pub const fn new_vartime(modulus: Odd<Uint<LIMBS>>) -> Self

Instantiates a new set of MontyParams representing the given odd modulus.

Trait Implementations§

Source§

impl<const LIMBS: usize> Debug for FixedMontyParams<LIMBS>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more