pub enum KemSlot {
MlKem768 {
public_key: String,
},
}Expand description
fn-129.T10: post-quantum KEM slot advertised by the initiator.
Serde-tagged on algo so the tag IS the version — adding a new
parameter set is a new variant, not a schema break. Parsers on
builds without pq-hybrid still see the field (it’s a plain
Option<KemSlot> on PairingToken regardless of feature); they
deserialize None when absent and preserve unknown algos as-is.
§Prelaunch
No version discriminant field; the serde tag is the version. If this changes after launch, the add-a-variant plan stays additive.
Variants§
MlKem768
ML-KEM-768 (FIPS 203 Category 3). public_key is the 1184-byte
encapsulation key, base64url-encoded without padding.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KemSlot
impl<'de> Deserialize<'de> for KemSlot
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
impl Eq for KemSlot
impl StructuralPartialEq for KemSlot
Auto Trait Implementations§
impl Freeze for KemSlot
impl RefUnwindSafe for KemSlot
impl Send for KemSlot
impl Sync for KemSlot
impl Unpin for KemSlot
impl UnsafeUnpin for KemSlot
impl UnwindSafe for KemSlot
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.