Struct wow_srp::client::SrpClientUser [−][src]
pub struct SrpClientUser { /* fields omitted */ }
Expand description
Starting point of the client. Next step is SrpClientChallenge
.
Uses NormalizedString
s for the reasons described there.
All arrays are little endian.
Implementations
Creates a new SrpClientUser
from username and password.
NormalizedString
is used for the reasons described there.
Takes the server supplied variables and computes the next step.
The generator and large safe prime are not checked for validity.
All arrays are little endian.
Panics
Panics on the extremely unlikely chance that the generated public key is invalid.
See PublicKey
for details on validity.
There are only two invalid states for the randomly generated server public key:
- All zeros.
- Exactly the same as the large safe prime.
This is 2 out of 2^256
possible states. The chances of this occurring naturally are very slim.
It is significantly more likely that the RNG of the system has been compromised in which case
authentication is not possible.