crypto_bigint/modular/
sub.rs

1use crate::{Odd, Uint};
2
3pub(crate) const fn sub_montgomery_form<const LIMBS: usize>(
4    a: &Uint<LIMBS>,
5    b: &Uint<LIMBS>,
6    modulus: &Odd<Uint<LIMBS>>,
7) -> Uint<LIMBS> {
8    a.sub_mod(b, &modulus.0)
9}