Struct wow_srp::client::SrpClient [−][src]
pub struct SrpClient { /* fields omitted */ }
Expand description
Represents a connection with the server. The final part of the state machine, previous was
SrpClientChallenge
.
Once this struct has been created the client and server have proven to each other that they both have the same password, and that they have an identical session key.
This is also used to prove to the server during reconnection that the client knows the session key.
The session key is used later for encrypting/decrypting traffic.
All arrays are little endian.
Implementations
Called K
in RFC2945, and sometimes S
in other places.
The session key is always 40 bytes (320 bits) in length because it is created from 2 SHA-1 hashes of 20 bytes (160 bits).
pub fn calculate_reconnect_values(
&self,
server_challenge_data: [u8; 16]
) -> SrpClientReconnection
pub fn calculate_reconnect_values(
&self,
server_challenge_data: [u8; 16]
) -> SrpClientReconnection
Calculates the client challenge data and proof found in SrpClientReconnection
.
The server challenge data is sent in the
CMD_AUTH_RECONNECT_CHALLENGE_Server
packet.
The client challenge, and therefore also the proof, is changed every time this is called.