crypto_bigint/traits/
sealed.rs

1//! Sealed traits.
2
3use super::PrecomputeInverter;
4
5/// Obtain a precomputed inverter which applies the given adjustment factor, i.e. for Montgomery form.
6pub trait PrecomputeInverterWithAdjuster<Adjuster>: PrecomputeInverter {
7    /// Obtain a precomputed inverter for `&self` as the modulus, supplying a custom adjusting parameter (e.g. R^2 for
8    /// when computing inversions in Montgomery form).
9    fn precompute_inverter_with_adjuster(&self, adjuster: &Adjuster) -> Self::Inverter;
10}