#[repr(u16)]pub enum KemAlgorithm {
MlKem512 = 257,
MlKem768 = 258,
MlKem1024 = 259,
XWing = 513,
}Expand description
Supported Key Encapsulation Mechanism (KEM) algorithms.
Variants§
MlKem512 = 257
NIST FIPS 203 ML-KEM-512 (NIST Security Category 1).
MlKem768 = 258
NIST FIPS 203 ML-KEM-768 (NIST Security Category 3).
MlKem1024 = 259
NIST FIPS 203 ML-KEM-1024 (NIST Security Category 5).
XWing = 513
IETF/CFRG X-Wing Hybrid KEM (ML-KEM-768 + X25519, NIST Category 3 + Classical 128-bit).
Implementations§
Source§impl KemAlgorithm
impl KemAlgorithm
Sourcepub const fn wire_id(self) -> u16
pub const fn wire_id(self) -> u16
Stable 16-bit big-endian wire identifier used in AgilePublicKey and Envelope headers.
Sourcepub const fn from_wire_id(id: u16) -> Result<Self>
pub const fn from_wire_id(id: u16) -> Result<Self>
Parses a 16-bit wire identifier.
Sourcepub const fn name(self) -> &'static str
pub const fn name(self) -> &'static str
Canonical human-readable algorithm name (suitable for CBOM / inventory reporting).
Sourcepub const fn nist_category(self) -> u8
pub const fn nist_category(self) -> u8
NIST Post-Quantum Security Category (1, 3, or 5).
Trait Implementations§
Source§impl Clone for KemAlgorithm
impl Clone for KemAlgorithm
impl Copy for KemAlgorithm
Source§impl Debug for KemAlgorithm
impl Debug for KemAlgorithm
impl Eq for KemAlgorithm
Source§impl Hash for KemAlgorithm
impl Hash for KemAlgorithm
Source§impl PartialEq for KemAlgorithm
impl PartialEq 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