pub enum Msg {
Commit([u8; 32]),
Pake(Vec<u8>),
Reveal {
pake: Vec<u8>,
hello: Vec<u8>,
},
Hello(Vec<u8>),
Bundle {
kem: Vec<u8>,
sealed: Vec<u8>,
},
Deny(Vec<u8>),
Ack(Vec<u8>),
Abort(String),
}Variants§
Commit([u8; 32])
Joiner: the hash of the SPAKE2 message it will reveal.
Pake(Vec<u8>)
Shower: its SPAKE2 message, sent before it can see the joiner’s.
Reveal
Joiner: its SPAKE2 message and its sealed hello.
Hello(Vec<u8>)
Shower: its sealed hello.
Bundle
Sender: the ML-KEM ciphertext, and the identity sealed under SPAKE2’s and ML-KEM’s secrets.
Deny(Vec<u8>)
Sender: the user said no.
Ack(Vec<u8>)
Receiver: the identity arrived and checked out.
Abort(String)
Either side gave up. Unauthenticated, so it can only end a session, never steer one.
Implementations§
Trait Implementations§
impl Eq for Msg
impl StructuralPartialEq for Msg
Auto Trait Implementations§
impl Forget for Msg
impl Freeze for Msg
impl Move for Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnsafeUnpin for Msg
impl UnwindSafe for Msg
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§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more