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).

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.