use super::{p384, p521};
pub(crate) fn bignum_montmul(z: &mut [u64], x: &[u64], y: &[u64], m: &[u64]) {
match m.len() {
6 => p384::bignum_montmul(z, x, y, m),
_ => p521::bignum_montmul(z, x, y, m),
}
}
pub(crate) fn bignum_demont(z: &mut [u64], x: &[u64], m: &[u64]) {
match m.len() {
6 => p384::bignum_demont(z, x, m),
_ => p521::bignum_demont(z, x, m),
}
}
pub(crate) fn bignum_modadd(z: &mut [u64], x: &[u64], y: &[u64], m: &[u64]) {
match m.len() {
6 => p384::bignum_modadd(z, x, y, m),
_ => p521::bignum_modadd(z, x, y, m),
}
}
pub(crate) fn bignum_modinv(z: &mut [u64], a: &[u64], b: &[u64], t: &mut [u64]) {
match b.len() {
6 => p384::bignum_modinv(z, a, b, t),
_ => p521::bignum_modinv(z, a, b, t),
}
}
#[cfg(test)]
pub(crate) fn bignum_montifier(z: &mut [u64], m: &[u64], t: &mut [u64]) {
match m.len() {
6 => p384::bignum_montifier(z, m, t),
_ => p521::bignum_montifier(z, m, t),
}
}