pub enum ServerMessage<'a, const K1: usize> {
Nonce([u8; K1]),
AugmentationInfo {
group: &'a str,
x_pub: RistrettoPoint,
salt: SaltString,
pbkdf_params: ParamsString,
},
PublicKey(RistrettoPoint),
Authenticator([u8; 64]),
}Expand description
An enum representing the different messages the server can send to the client
Variants§
Nonce([u8; K1])
SSID establishment message - the server’s nonce: s
AugmentationInfo
Information required for the AuCPace Augmentation layer sub-step
Fields
§
x_pub: RistrettoPointX from the protocol definition
§
salt: SaltStringthe salt used with the PBKDF
§
pbkdf_params: ParamsStringthe parameters for the PBKDF used - sigma from the protocol definition
PublicKey(RistrettoPoint)
CPace substep message - the server’s public key: Ya
Authenticator([u8; 64])
Explicit Mutual Authentication - the server’s authenticator: Ta
Trait Implementations§
Auto Trait Implementations§
impl<'a, const K1: usize> Freeze for ServerMessage<'a, K1>
impl<'a, const K1: usize> RefUnwindSafe for ServerMessage<'a, K1>
impl<'a, const K1: usize> Send for ServerMessage<'a, K1>
impl<'a, const K1: usize> Sync for ServerMessage<'a, K1>
impl<'a, const K1: usize> Unpin for ServerMessage<'a, K1>
impl<'a, const K1: usize> UnwindSafe for ServerMessage<'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