pub enum KemAlgorithm {
Rlwe,
MlKem512,
MlKem768,
MlKem1024,
Hybrid,
}Expand description
Key Encapsulation Mechanism algorithm selection
Variants§
Rlwe
Custom RLWE (existing implementation) — NIST Level 3 equivalent
MlKem512
ML-KEM-512 (FIPS 203) — NIST Level 1
MlKem768
ML-KEM-768 (FIPS 203) — NIST Level 3 (recommended)
MlKem1024
ML-KEM-1024 (FIPS 203) — NIST Level 5
Hybrid
Hybrid: RLWE + ML-KEM-768 (defense in depth)
Trait Implementations§
Source§impl Clone for KemAlgorithm
impl Clone for KemAlgorithm
Source§fn clone(&self) -> KemAlgorithm
fn clone(&self) -> KemAlgorithm
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 moreimpl Copy for KemAlgorithm
Source§impl Debug for KemAlgorithm
impl Debug for KemAlgorithm
Source§impl Default for KemAlgorithm
impl Default for KemAlgorithm
Source§fn default() -> KemAlgorithm
fn default() -> KemAlgorithm
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KemAlgorithm
impl<'de> Deserialize<'de> for KemAlgorithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KemAlgorithm
impl PartialEq for KemAlgorithm
Source§fn eq(&self, other: &KemAlgorithm) -> bool
fn eq(&self, other: &KemAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KemAlgorithm
impl Serialize for KemAlgorithm
impl StructuralPartialEq for KemAlgorithm
Auto Trait Implementations§
impl Freeze for KemAlgorithm
impl RefUnwindSafe for KemAlgorithm
impl Send for KemAlgorithm
impl Sync for KemAlgorithm
impl Unpin for KemAlgorithm
impl UnsafeUnpin for KemAlgorithm
impl UnwindSafe for KemAlgorithm
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