#[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 From<RsaModulus> for RsaModulus
The WIT rsa.rsa-modulus cases, converted locally: the type is
deliberately outside the shared core’s impl_conversions! (see its
doc in the core).
impl From<RsaModulus> for RsaModulus
The WIT rsa.rsa-modulus cases, converted locally: the type is
deliberately outside the shared core’s impl_conversions! (see its
doc in the core).
Source§fn from(modulus: RsaModulus) -> Self
fn from(modulus: RsaModulus) -> Self
Converts to this type from the input type.
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 ==.impl ComponentType for RsaModulus
impl Copy for RsaModulus
impl Eq for RsaModulus
impl Lift for RsaModulus
impl Lower 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more