#[repr(usize)]pub enum KeySize {
N2048 = 256,
N3072 = 384,
N4096 = 512,
N6144 = 768,
N8192 = 1_024,
}
Expand description
The key size is the bit/byte-size of the modulus N. Note that the values are bytes but the names are in bits.
Variants§
N2048 = 256
N = 2048 bits | 256 bytes
N3072 = 384
N = 3072 bits | 384 bytes
N4096 = 512
N = 4096 bits | 512 bytes
N6144 = 768
N = 6144 bits | 768 bytes
N8192 = 1_024
N = 8192 bits | 1024 bytes
Trait Implementations§
source§impl PartialEq for KeySize
impl PartialEq for KeySize
impl Copy for KeySize
impl Eq for KeySize
impl StructuralPartialEq for KeySize
Auto Trait Implementations§
impl Freeze for KeySize
impl RefUnwindSafe for KeySize
impl Send for KeySize
impl Sync for KeySize
impl Unpin for KeySize
impl UnwindSafe for KeySize
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)