crypto_bigint/modular/const_monty_form/
reduce.rs1use super::ConstMontyParams;
2use crate::{Reduce, Uint, modular::ConstMontyForm};
3
4impl<const LIMBS: usize, MOD> Reduce<Uint<LIMBS>> for ConstMontyForm<MOD, LIMBS>
5where
6 MOD: ConstMontyParams<LIMBS>,
7{
8 fn reduce(value: &Uint<LIMBS>) -> Self {
9 Self::new(value)
10 }
11}