blob: ccc6ccad752cc61e7787097af638d719ab01b454 [file] [log] [blame]
use crate::bits;
/// The bounds that determine whether an RSA key is acceptable.
pub trait Bounds: crate::sealed::Sealed {
/// The minimum length of the public modulus.
fn n_min_bits(&self) -> bits::BitLength;
/// The maximum length of the public modulus.
fn n_max_bits(&self) -> bits::BitLength;
/// The minimum length of the public exponent.
fn e_min_value(&self) -> u64;
}