Struct wow_srp::client::SrpClientChallenge [−][src]
pub struct SrpClientChallenge { /* fields omitted */ }
Expand description
Second step of the client connection. First is SrpClientUser
. Next is SrpClient
.
The client proof and public key must be sent to the server in the
CMD_AUTH_LOGON_PROOF_Client
packet before the server proof is available.
All arrays are little endian.
The CRC check also present in the same network packet is out of scope for this crate.
Implementations
Called M
in RFC2945, called M1
in other literature.
M2
is the argument passed to SrpClientChallenge::verify_server_proof
.
Called A
in RFC2945.
Also sometimes referred to as a
, although this is the abbreviation of the private key.
If the lowercase version appears in a packet table it is referring to the public key.
pub fn verify_server_proof(
self,
server_proof: [u8; 20]
) -> Result<SrpClient, MatchProofsError>
pub fn verify_server_proof(
self,
server_proof: [u8; 20]
) -> Result<SrpClient, MatchProofsError>
Verifies that the server knows the same password as was initially used in SrpClientUser::new
.
Errors
This should very rarely return an error unless something weird is going on with the server, ther server deliberately sends an incorrect value, or the packet has been read incorrectly.