#[repr(u8)]pub enum RsaModulus {
M2048 = 0,
M3072 = 1,
M4096 = 2,
M8192 = 3,
}Expand description
The modulus lengths generate-key serves: the standard sizes,
closed as an enum so a nonstandard or sub-2048 generation request
is unrepresentable. (Import admission is wider — see the family
contract above and the signing interfaces’ window — because
existing keys are facts; new keys are choices.)
Variants§
M2048 = 0
2048 bits: the NIST SP 800-131A floor, and the size the deployed JOSE/DKIM/SAML ecosystems issue.
M3072 = 1
3072 bits (the 128-bit security match).
M4096 = 2
4096 bits.
M8192 = 3
8192 bits.
Trait Implementations§
Source§impl Clone for RsaModulus
impl Clone for RsaModulus
Source§fn clone(&self) -> RsaModulus
fn clone(&self) -> RsaModulus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RsaModulus
impl Debug for RsaModulus
Source§impl Ord for RsaModulus
impl Ord for RsaModulus
Source§fn cmp(&self, other: &RsaModulus) -> Ordering
fn cmp(&self, other: &RsaModulus) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RsaModulus
impl PartialEq for RsaModulus
Source§fn eq(&self, other: &RsaModulus) -> bool
fn eq(&self, other: &RsaModulus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RsaModulus
impl PartialOrd for RsaModulus
impl Copy for RsaModulus
impl Eq for RsaModulus
impl StructuralPartialEq for RsaModulus
Auto Trait Implementations§
impl Freeze for RsaModulus
impl RefUnwindSafe for RsaModulus
impl Send for RsaModulus
impl Sync for RsaModulus
impl Unpin for RsaModulus
impl UnsafeUnpin for RsaModulus
impl UnwindSafe for RsaModulus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more