Skip to main content

sqrt_montgomery_form

Function sqrt_montgomery_form 

Source
pub const fn sqrt_montgomery_form<const LIMBS: usize>(
    monty_value: &Uint<LIMBS>,
    monty_params: &FixedMontyParams<LIMBS>,
    prime_params: &PrimeParams<LIMBS>,
) -> CtOption<Uint<LIMBS>>
Expand description

Compute a modular square root (if it exists) given [MontyParams] and PrimeParams corresponding to monty_value, in Montgomery form.