summaryrefslogtreecommitdiffstats
path: root/vendor/crypto-bigint/src/uint/modular/sub.rs
blob: 9c4717033704740906dc8c79b41fe3f8463ae3f7 (plain)
1
2
3
4
5
6
7
8
9
use crate::Uint;

pub(crate) const fn sub_montgomery_form<const LIMBS: usize>(
    a: &Uint<LIMBS>,
    b: &Uint<LIMBS>,
    modulus: &Uint<LIMBS>,
) -> Uint<LIMBS> {
    a.sub_mod(b, modulus)
}