• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use crate::bits;
2 
3 /// The bounds that determine whether an RSA key is acceptable.
4 pub trait Bounds: crate::sealed::Sealed {
5     /// The minimum length of the public modulus.
n_min_bits(&self) -> bits::BitLength6     fn n_min_bits(&self) -> bits::BitLength;
7 
8     /// The maximum length of the public modulus.
n_max_bits(&self) -> bits::BitLength9     fn n_max_bits(&self) -> bits::BitLength;
10 
11     /// The minimum length of the public exponent.
e_min_value(&self) -> u6412     fn e_min_value(&self) -> u64;
13 }
14