pub enum RsaKeyLength {
Modulus2048 = 2_048,
Modulus3072 = 3_072,
Modulus4096 = 4_096,
}
Expand description
Supported RSA key length (length of the modulus)
To be compliant with FIPS 186-5 (Digital Signature standards), the length of the modulus must be greater than 2048 bits. [https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf]
Variants§
Trait Implementations§
source§impl Clone for RsaKeyLength
impl Clone for RsaKeyLength
source§fn clone(&self) -> RsaKeyLength
fn clone(&self) -> RsaKeyLength
Returns a copy of the value. Read more
1.0.0 · 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 RsaKeyLength
impl Debug for RsaKeyLength
source§impl Hash for RsaKeyLength
impl Hash for RsaKeyLength
source§impl PartialEq for RsaKeyLength
impl PartialEq for RsaKeyLength
source§fn eq(&self, other: &RsaKeyLength) -> bool
fn eq(&self, other: &RsaKeyLength) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RsaKeyLength
impl Eq for RsaKeyLength
impl StructuralPartialEq for RsaKeyLength
Auto Trait Implementations§
impl Freeze for RsaKeyLength
impl RefUnwindSafe for RsaKeyLength
impl Send for RsaKeyLength
impl Sync for RsaKeyLength
impl Unpin for RsaKeyLength
impl UnwindSafe for RsaKeyLength
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