pub enum ClientMessage<'a, const K1: usize> {
Nonce([u8; K1]),
Username(&'a [u8]),
PublicKey(RistrettoPoint),
Authenticator([u8; 64]),
Registration {
username: &'a [u8],
salt: SaltString,
params: ParamsString,
verifier: RistrettoPoint,
},
}Expand description
An enum representing the different messages the client can send to the server
Variants§
Nonce([u8; K1])
SSID establishment message - the client’s nonce: t
Username(&'a [u8])
Username - the client’s username
PublicKey(RistrettoPoint)
PublicKey - the client’s public key: Ya
Authenticator([u8; 64])
Explicit Mutual Authentication - the client’s authenticator: Tb
Registration
Registration - the username, verifier, salt and parameters needed for registering a user NOTE: if the UAD field is desired this should be handled separately and sent at the same time
Fields
§
salt: SaltStringThe salt used when computing the verifier
§
params: ParamsStringThe password hasher’s parameters used when computing the verifier
§
verifier: RistrettoPointThe verifier computed from the user’s password
Trait Implementations§
Auto Trait Implementations§
impl<'a, const K1: usize> Freeze for ClientMessage<'a, K1>
impl<'a, const K1: usize> RefUnwindSafe for ClientMessage<'a, K1>
impl<'a, const K1: usize> Send for ClientMessage<'a, K1>
impl<'a, const K1: usize> Sync for ClientMessage<'a, K1>
impl<'a, const K1: usize> Unpin for ClientMessage<'a, K1>
impl<'a, const K1: usize> UnwindSafe for ClientMessage<'a, K1>
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